[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [bug] Restarting Daemons on package install/upgrade.



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: