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

Re: Daemon init scripts and apt-get [was: Re: red worm amusement]



On Wed, Aug 08, 2001 at 08:44:50PM +0200, Marko Kreen wrote:
> On Wed, Jul 25, 2001 at 11:05:25AM -0700, Dale Southard wrote:
> > Why not use something like the IRIX ``chkconfig'' system: Provide a
> > simple program that takes the ``name'' of a service and then checks an
> > external file/files for ``on'' or off status of each service, and
> > returns 0 if on, 1 if off.  Then have each init.d script do something
> > like:
> > 
> >   case "$1" in
> >     'start')
> >       if /etc/chkconfig myservice; then
> >         ...
> >         start myservice
> >         ...
> >       fi
> 
> Would not it be better to put this login in rcS script?  That
> way the services can be manually started if needed (eg. for
> testing).
> 

If you want to login before services start in single user mode then change:

# Set to yes if you want sulogin to be spawned on bootup
SULOGIN=yes

in /etc/default/rcS

Mike



Reply to: