Ubuntu Server 10.04: enable/disable services on startup

Nicolas Kovacs info at microlinux.fr
Thu Sep 29 06:28:29 UTC 2011


Le 29/09/2011 07:27, Nicolas Kovacs a écrit :
> How are things supposed to work in Ubuntu?

OK, I googled some more, and I'll try to answer this myself. The problem 
here is not so much the lack of information, but the wealth of 
contradicting - and obviously wrong - information. Anyway, I *think* it 
goes like this. Two examples :

Disable DHCP server on startup:

# update-rc.d -f dhcp3-server remove

Re-enable DHCP server on startup:

# update-rc.d dhcp3-server start 40 2 3 4 5 . stop 40 1 .

Disable BIND on startup:

# update-rc.d -f bind9 remove

Re-enable BIND on startup:

# update-rc.d bind9 start 20 2 3 4 5 . stop 20 0 1 6 .

As for finding the default start and kill values, I did this:

# ls /etc/rc?.d

I took a look at the symlinks on a default install of DHCP and Bind, and 
then wrote down the respective values.

I must say this seems an unnecessarily complex way of doing things. But 
then, probably I'm spoilt with Slackware's bone-headed BSD init :o)

Cheers,

Niki
-- 
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : info at microlinux.fr
Tél. : 04 66 63 10 32




More information about the ubuntu-users mailing list