Click to See Complete Forum and Search --> : Startup services on Debian


cloverm
05-03-2001, 09:29 PM
Can somebody tell me how to Enable/Disable startup services such as httpd, ftpd, sshd, mysqld, etc. on a Debian system? I didn't find anything in linuxconf.

bdl
05-03-2001, 09:36 PM
Debian has perhaps the cleanest SYS V interface I've seen, and uses the following directories:

/etc/init.d - scripts are stored here
/etc/rc?.d/ - where '?' is a runlevel, these directories contain links to /etc/init.d/

You will want to use the 'update-rc.d' tool to add and remove services under Debian. Obviously, the best way to go about it is to just 'man update-rc.d' and go from there.

An easy way to remove services is

linuxprompt# update-rc.d -f bind remove

...where 'bind' is the name of the service or startup script you want removed. This parm has to be a valid script name under /etc/init.d. Enjoy!

[edited after I realized I switched the command line parms. Sorry!]

[ 03 May 2001: Message edited by: bdl ]

cloverm
05-03-2001, 10:10 PM
Thanks for the help bdl, it worked.