Monday, November 11, 2013

How to disable a service in Ubuntu ...

$ sudo update-rc.d tomcat7 disable
update-rc.d: warning: tomcat7 start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: tomcat7 stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
 Disabling system startup links for /etc/init.d/tomcat7 ...
 Removing any system startup links for /etc/init.d/tomcat7 ...
   /etc/rc0.d/K08tomcat7
   /etc/rc1.d/K08tomcat7
   /etc/rc2.d/S92tomcat7
   /etc/rc3.d/S92tomcat7
   /etc/rc4.d/S92tomcat7
   /etc/rc5.d/S92tomcat7
   /etc/rc6.d/K08tomcat7
 Adding system startup for /etc/init.d/tomcat7 ...
   /etc/rc0.d/K08tomcat7 -> ../init.d/tomcat7
   /etc/rc1.d/K08tomcat7 -> ../init.d/tomcat7
   /etc/rc6.d/K08tomcat7 -> ../init.d/tomcat7
   /etc/rc2.d/K08tomcat7 -> ../init.d/tomcat7
   /etc/rc3.d/K08tomcat7 -> ../init.d/tomcat7
   /etc/rc4.d/K08tomcat7 -> ../init.d/tomcat7
   /etc/rc5.d/K08tomcat7 -> ../init.d/tomcat7

No comments: