Re: [bug] Restarting Daemons on package install/upgrade.
- To: "Karl M. Hegbloom" <karlheg@inetarena.com>, Debian Developers' Forum <debian-devel@lists.debian.org>
- Subject: Re: [bug] Restarting Daemons on package install/upgrade.
- From: Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
- Date: Sat, 1 Jan 2000 22:37:14 +0000
- Message-id: <[🔎] 20000101223714.A15636@polya>
- In-reply-to: <19991223065857.A30482@brown.edu>; from Daniel_Burrows@brown.edu on Thu, Dec 23, 1999 at 06:58:58AM -0500
- References: <199912230649.WAA24751@bittersweet.or.us> <19991223065857.A30482@brown.edu>
On Thu, Dec 23, 1999 at 06:58:58AM -0500, Daniel Burrows wrote:
> On Wed, Dec 22, 1999 at 10:49:31PM -0800, Karl M. Hegbloom was heard to say:
> > I've noticed that when I install or upgrade a daemon, it's often
> > started up during the postinst regardless of whether I have that
> > service enabled via /etc/rcN.d for the runlevel I am currently in.
> > This is very annoying.
> >
> > Please, if you maintain a daemon package, fix it, for potato, so that
> > it only restarts if there's a link to the init.d script from the
> > runlevel directory of the current runlevel.
>
> Do we have a generic way to test whether a daemon is enabled for a given
> runlevel? That is -- one that works with filerc as well as sysvinit?
I've written the skeleton of one for sysvinit; the logic should be
very similar for filerc. See
http://www.debian.org/Lists-Archives/debian-devel-9910/msg00427.html
for the information. Note that you have to check level S as well as
the current runlevel.
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: