Runlevel Config Tools for Debian

From LinodeWiki

Jump to: navigation, search

You can use update-rc.d which is provided by the sysv-rc debian package itself or if you prefer you can use more fancy ones like rcconf or bum or sysv-rc-conf.

Install these packages and choose the one which suits you the best.

 apt-get install sysv-rc

update-rc.d when run with either the defaults, start, or stop options, update-rc.d makes links /etc/rcrunlevel.d/[SK]NNname pointing to the script /etc/init.d/name

Examples:

  • To add a daemon you use: (where NN is the sequence code]
 update-rc.d <daemon> defaults [NN}
  • Other way to add daemon with sequence code NN in rulevels 3 and 5
 update-rc.d <daemon> start NN 3 5 . stop NN 0 1 6 .
  • To remove a daemon you use:
 update-rc.d -f <daemon> remove

--Meme 16:09, 18 Feb 2006 (EST)

Personal tools