Re: [squid-users] issue with start / stop scripts

2015-11-29 Thread Amos Jeffries
On 29/11/2015 8:11 p.m., Alex Samad wrote: > Hi > > its in the scripts > stop() { > echo -n $"Stopping $prog: " > $SQUID -k check -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1 > RETVAL=$? > if [ $RETVAL -eq 0 ] ; then > > > Any reason to check the config before

Re: [squid-users] issue with start / stop scripts

2015-11-29 Thread Eliezer Croitoru
On 29/11/2015 09:11, Alex Samad wrote: Hi its in the scripts stop() { echo -n $"Stopping $prog: " $SQUID -k check -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1 RETVAL=$? if [ $RETVAL -eq 0 ] ; then Any reason to check the config before stopping a running s

Re: [squid-users] issue with start / stop scripts

2015-11-28 Thread Alex Samad
Hi its in the scripts stop() { echo -n $"Stopping $prog: " $SQUID -k check -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1 RETVAL=$? if [ $RETVAL -eq 0 ] ; then Any reason to check the config before stopping a running squid ?? On 29 November 2015 at 09:32, Eliez

Re: [squid-users] issue with start / stop scripts

2015-11-28 Thread Amos Jeffries
On 29/11/2015 11:32 a.m., Eliezer Croitoru wrote: > A check on what? > Basically to verify if squid is still running you need to verify that > there are is not one squid instance running. > The PID is kind of a hack to make sure squid is still there or not. > In most cases you can cancel the timeou

Re: [squid-users] issue with start / stop scripts

2015-11-28 Thread Eliezer Croitoru
A check on what? Basically to verify if squid is still running you need to verify that there are is not one squid instance running. The PID is kind of a hack to make sure squid is still there or not. In most cases you can cancel the timeout and check only for the PID. Also notice that there is a

Re: [squid-users] issue with start / stop scripts

2015-11-28 Thread Alex Samad
Hi yeah from the rpms. I found the variables to lengthen the timeout period. But I got in the strange situation where the pid file was still there (shutdown took longer than the timeout). and the scripts still thought it was running, so stop would fail as it does a check first. do we need to do a

Re: [squid-users] issue with start / stop scripts

2015-11-28 Thread Eliezer Croitoru
What script are you using? If it's from my RPMs I might be able to patch it and make sure it will work better. Eliezer On 27/11/2015 08:09, Alex Samad wrote: Hi I have a rather long list of blocked address in my squid config. and the default start stop timeout values are a bit short for my s

Re: [squid-users] issue with start / stop scripts

2015-11-26 Thread Amos Jeffries
On 27/11/2015 7:09 p.m., Alex Samad wrote: > Hi > > I have a rather long list of blocked address in my squid config. > and the default start stop timeout values are a bit short for my setup. > Then extend them. > when i did stop it failed because the time to parse the config took to > long. any