From: Adam Megacz <megacz@hcoop.net>
To: supervision@list.skarnet.org
Subject: inhibiting /etc/init.d/foo on debian?
Date: Fri, 28 Dec 2007 10:09:07 -0800 [thread overview]
Message-ID: <x3tzm21ykc.fsf@nowhere.com> (raw)
Hello,
On a bunch of machines I use runit for whatever services I care most
about, and leave /sbin/init running to handle the big piles of
miscellaneous stuff that debian keeps in /etc/init.d/
So far I've been inhibiting the runit-ified services from starting
using something like this:
update-rc.d -f $1 remove
update-rc.d -f $1 stop 99 0 1 2 3 4 5 6 S .
The only problem here is that many package install/uninstall scripts
explicitly invoke their own /etc/init.d scripts as part of the
prerm/postinst. Is there any way to stop the scripts from executing
in these situations, or (even better) make them perform the
appropriate "sv {up|down}" action?
In particular, this causes rather severe problems for some daemons
that do not cope well with having two copies of themselves running at
the same time.
Thanks!
- a
--
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380
next reply other threads:[~2007-12-28 18:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 18:09 Adam Megacz [this message]
2007-12-28 20:28 ` KORN Andras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x3tzm21ykc.fsf@nowhere.com \
--to=megacz@hcoop.net \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).