This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
updaterc.d [2016/01/28 12:22]
yassine chaouche
updaterc.d [2016/05/23 13:50] (current)
yassine chaouche
Line 8: Line 8:
 </​code>​ </​code>​
-====== ​Removing ​a service from start-time ====== +====== ​Disabling ​a service from start-time ======
 <​code>​ <​code>​
-root@skx:~# update-rc.d -f blah remove+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[] ~ # 
 </​code>​ </​code>​
-The -f option is necessary because ​the remove command won't unlink your service as long as there'​s something in /​etc/​init.d/​. The -f is for **force**.+Notice how all the S links (start) became K (kill). 
 ====== Listing all scheduled services ====== ====== Listing all scheduled services ======

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