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

Re: Daemon mgmt was Re: turning off /sbin/portmap



Hi All,


I responded to this question and said to use 'update-alternatives' myself. I 
meant    update-rc.d.

Doh!

Jimmy Richards



On Thursday 29 March 2001 14:25, Daniel Freedman wrote:
> Hi,
>
> On Thu, Mar 29, 2001, Alan Chen wrote:
> > Just as an excercise to my own sys admin knowledge, I'll summarize my
> > general knowledge and just ask if anyone has suggestions or differences
> > in my understanding.
> >
> > Daemons (or services) can be manually manipulated in debian using
> > /etc/init.d/<daemon> with the command start, stop, restart, etc..
> >
> > This will only change what is currently running.  If you reboot,
> > whatever was configured for your runlevel will be started again.
> > rcS.d/ is stuff started for every runlevel
> > rcn.d/ lists runlevel specific daemons that are started at boot
> >
> > update-alternatives (or was it alternatives-update) is a admin tool for
> > adding, removing daemons from various runlevels.
>
> Don't you mean update-rc.d?
>
> According to the man page:
>        update-alternatives  creates,  removes, maintains and dis-
>        plays information about the symbolic links comprising  the
>        Debian alternatives system.
>
> Thus, update-alternatives was meant for specifying which option is
> associated with the generic name.  In other words editor can link to
> emacs, vi, vim, nano, etc.; x-window-manager can link to fvwm,
> blackbox, etc.
>
> > To remove a daemon from starting at a given runlevel, i generally just
> > delete the entry in the /etc/rcn.d directory.  Are there any reasons
> > for not doing that? I wish the update-alternatives would accept syntax
> > like "update-alternatives +3 postres" to add postgres to runlevel 3.
> > Maybe it does, it's been a while since I last used it.
>
> I think what you want is update-rc.d:
>
> update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6
>
> freedman@warthog:~$ /usr/sbin/update-rc.d --help
> usage: update-rc.d [-n] [-f] <basename> remove
>        update-rc.d [-n] [-f] <basename> defaults [NN | sNN kNN]
>        update-rc.d [-n] [-f] <basename> start|stop NN runlvl runlvl .  ...
>                 -n: not really
>                 -f: force
>
>
> Hope this helps,
>
> Take care,
>
> Daniel



Reply to: