Reload Squid Proxy Server Without Restarting Squid Daemon

by on January 18, 2012 · 4 comments· LAST UPDATED January 18, 2012

in

I made some changes to the /etc/squid/squid.conf file and issued the command /sbin/service squid restart. However, this command takes way too much time to restart the server. How do I tell squid to just reread the config file and apply new changes under Linux operating systems?

You can use any one of the following commands to reload the squid after making changes to squid.conf file. Open a command-line terminal (select Applications > Accessories > Terminal) OR login using ssh, and then type the following commands:
# /usr/sbin/squid -k reconfigure
OR, use startup script from /etc/init.d/ directory as follows:
# /etc/init.d/squid reload
Another option is to send HUP single to squid process using the kill command:
# kill -HUP `cat /var/run/squid.pid`
OR
# kill -HUP $(cat /var/run/squid.pid)

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 4 comments… read them below or add one }

1 Rajiv Singh January 26, 2012 at 5:36 pm

just run the following command
/sbin/service squid reload

Reply

2 Rajiv Singh January 26, 2012 at 5:38 pm

hope the command /sbin/service squid reload
will solve ur problem

Reply

3 Mehdi May 15, 2012 at 5:40 am

Thank you, helped me not to wait ten seconds for squid3 to restart

Reply

4 markus July 28, 2013 at 6:26 am

thanks !!

Reply

Leave a Comment

Tagged as: , , , , , , , , , , ,

Previous Faq:

Next Faq: