chkconfig update-rc.d prevent service from starting you reboot

The well known way to remove a service from system boot under Debian / Ubuntu, without removing the package:
update-rc.d -f mysql remove
This command removes all /etc/rc*/*mysql* symbolic links. At next boot, the service is not started.
Problem: when you update the mysql package (aptitude update), symlinks are created again.
Solution: in the last update-rc.d versions, there are disable / enable commands:
update-rc.d mysql disable
Useful if like me you only start apache or mysql some times for Web development. Also useful if you share files with Samba and only want to start the daemon occasionaly.
Note: update-rc.d --help tells us that The disable|enable API is not stable and might change in the future.


to prevent service from starting the next time you reboot your system, run:

chkconfig postfix off

The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfig is update-rc.d .This command nearly supports all the new versions of ubuntu. sysv-rc-conf is an alternate option for Ubuntu

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all