LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-20-2011, 04:24 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 578

Rep: Reputation: 31
How to configure squid.conf when it is functional?


I am using Squid server on my Red Hat Linux machine.Squid is functional and clients are access through proxy.I want to ask that if I want to open my squid.conf file for any changes should i first stop squid and then do the changes .
what is the proper way ?
thanks for guidance.
garden
 
Old 01-20-2011, 04:44 AM   #2
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
You can change config file. It will not activate your new configuration until you restart or reload

service squid reload
SQUID_OPTS=${SQUID_OPTS:-"-D"}
$SQUID $SQUID_OPTS -k reconfigure

service squid restart
basically service stop and start

Last edited by novice06; 01-20-2011 at 04:49 AM.
 
Old 01-20-2011, 05:57 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 578

Original Poster
Rep: Reputation: 31
thanks for the reply. Well the following lines are a bit technical for me. can you explain it.

Code:
SQUID_OPTS=${SQUID_OPTS:-"-D"}
$SQUID $SQUID_OPTS -k reconfigure
yes I know it is service start and stop .
please just guide me the above
 
Old 01-22-2011, 05:44 AM   #4
sabir_mustafa
Member
 
Registered: Aug 2009
Location: Rawalpindi
Distribution: RHEL 5, CentOS
Posts: 38

Rep: Reputation: 16
Talking

I had compiled squid from source and use following command to refresh squid.conf configuration changes while squid keep running:

/usr/local/squid/sbin/squid -k reconfigure

If you installed from an rpm then please verify your squid path and then issue the switch "-k reconfigure" just as i had typed above.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure My squid.conf so that i can use SSLport for POP, SMTP ajithender Linux - Networking 4 08-15-2009 05:54 AM
Transparent Proxy in squid not functional myasir_genious Linux - Server 3 06-10-2009 03:01 PM
how to configure squid.conf vhargude Linux - Newbie 1 06-16-2008 04:37 AM
korgnaizer configure time and date not functional sparckis Linux - Software 2 07-29-2007 10:56 AM
help me to configure Squid.conf sachin_shetty Linux - Server 11 11-07-2006 01:24 AM


All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration