[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

How to start squid at boot time?

How to start squid at boot time?  I'm using Mandrake Linux 10.....

"I Did the commands below but did not succeed"
cd to /etc/rc.d/rc3.d
ln -s /etc/rc.d/init.d/squid S81squid
2 Solutions
I don't know about mandrake, but there should be an /etc/init.d/ where you can put an initialization script (if you have one). same initializatio script you can put in /etc/rc.d/rc.x where x is the init level (so the script will be executed when entering the specific run level). or edit /etc/rc.d/rc.local and add the line that you use to start squid at the end.
try: chkconfig squid on # will do the symlinks for You
If the links are not present in the rc.d folders, then use the chkconfig command to create them:

chkconfig --add squid

you can verify and change which run levels are set with the same command:

chkconfig --list squid
squid           0:off   1:off   2:off   3:off   4:off   5:off   6:off

chkconfig squid on
chkconfig --list squid
squid           0:off   1:off   2:off   3:on   4:on   5:on   6:off

Note that setting soft links manually or using chkconfig will have no impact on the server until after reboot.  

Confirm by running the server that it is configured properly as well, you could be chasing a runlevel setup when the probelm is the server has a bad configuration file:

do the following:
# This command traces log messages in the background
tail -f /var/log/messages &   
service squid start
service squid status
If you get normal startup messages and status says:
"squid (pid 18704 18701) is running..."
Reboot and everything is good

If you get error messages and status says:
"squid dead but subsys locked"

Then you need to go over your setup again



Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now