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[] ~ # find /etc/rc* -name "*bind*"
root@messagerie-secours[] ~ # 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[] ~ # find /etc/rc* -name "*bind*"
root@messagerie-secours[] ~ # 

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)