Home > computers > linux > Distros > debian > update.rc | About

Adding a service at start-time

root@skx:~# update-rc.d blah defaults

Disabling a service from start-time

root@messagerie-secours[10.10.10.19] ~ # find /etc/rc* -name "*bind*"
/etc/rc0.d/K02bind9
/etc/rc1.d/K02bind9
/etc/rc2.d/S18bind9
/etc/rc3.d/S18bind9
/etc/rc4.d/S18bind9
/etc/rc5.d/S18bind9
/etc/rc6.d/K02bind9
root@messagerie-secours[10.10.10.19] ~ # update-rc.d bind9 disable
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `bind9' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `bind9' overwrites defaults (0 1 6).
root@messagerie-secours[10.10.10.19] ~ # find /etc/rc* -name "*bind*"
/etc/rc0.d/K02bind9
/etc/rc1.d/K02bind9
/etc/rc2.d/K02bind9
/etc/rc3.d/K02bind9
/etc/rc4.d/K02bind9
/etc/rc5.d/K02bind9
/etc/rc6.d/K02bind9
root@messagerie-secours[10.10.10.19] ~ # 

Notice how all the S links (start) became K (kill).

Listing all scheduled services

Don't use service –status-all, this will just run service blah status on all the services and return their actual status, not if they're scheduled at boot time or not. The solution is to look at what's in /etc/rc2.d/, maybe something like this


contact : @ychaouche yacinechaouche at yahoocom


QR Code
QR Code Adding a service at start-time (generated for current page)