System daemons can use either legacy SysV init scripts or the newer Upstart.
For sysv scripts there are several management tools, one of such tools is "sysv-rc-conf" from the "sysv-rc-conf" package, install it and launch it from the terminal.
Regarding Upstart as far as I know there is no management tool yet, you need to manually rename the corresponding script from /etc/init, eg:
mv /etc/init/ufw.conf /etc/init/ufw.conf.disabled
Squid3 uses sysv init scripts, you can disable it with sysv-rc-conf .
You can use the chkconfig utility for this purpose.
To check the run level status of squid you can run this command:
This will output something like below:
To turn off squid in all run level you can use this command:
To turn off squid in a particular run level you can use this command:
System daemons can use either legacy SysV init scripts or the newer Upstart.
For sysv scripts there are several management tools, one of such tools is "sysv-rc-conf" from the "sysv-rc-conf" package, install it and launch it from the terminal.
Regarding Upstart as far as I know there is no management tool yet, you need to manually rename the corresponding script from /etc/init, eg:
Squid3 uses sysv init scripts, you can disable it with sysv-rc-conf .
The above answers did not work for my Ubuntu 16.04.
Here is what it worked:
Although you may get an error like:
The service remains stopped even after reboot.
If you know why the error happens and how to fix it, please feel free to comment or edit the answer.
Squid uses the old init system, so this command should do the trick:
sudo update-rc.d -f squid3 remove
.For more find-grained control of when to start/stop the service:
sudo sysv-rc-conf
Two the simplest ways (from my point of view).
1)
mv /etc/init/squid3.conf /etc/init/squid3.conf.disabled
2) comment out the following line
in
/etc/init/squid3.conf