Search squid archive

Re: issue with start / stop scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 stopping a running squid ??
> 

It seems to be extraneous. It certainly does not stop the proxy, and
will definitely slow the shutown process, potentially by a lot.

The only reason that makes sense is to ensure that the config is in a
sane state before stopping the proxy. Which kind of makes sense if
reconfigure or restart is implemented as a pair of "stop() && start()" -
but would be better implemented as calls to the relevant -k commands.

Amos

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux