I want to stop some daemons from loading at boot time, specially squid3. What is the best way of doing this?
You can use 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 .
Squid uses the old init system, so this command should do the trick:
For more find-grained control of when to start/stop the service:
Two the simplest ways (from my point of view).
2) comment out the following line