Differences

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[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] ~ # 
 </​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)