Re: [squid-users] cant build squid 3.3.5 with external_acl_helper ldap_group on CentOS 6.4 64bits

From: Ricardo Klein <klein.rfk_at_gmail.com>
Date: Mon, 24 Jun 2013 10:55:47 -0300

Ok, my new squid init script for CentOS is ready, I am sorry for the
delay, but, I have a lot of work here and only now had time to finish
the script.

I dont know if I can reach fedora people to try to check if this init
script can became a fedora standard and later RHEL/CentOS, if you know
someone please tell me.

Btw, I have added to the original script:
1. A simple mkdir to create the /var/run/squid, since now we have a
lot of ipc files that need to have squid access:
if [ ! -d $SQUID_PIDDIR ] ; then mkdir $SQUID_PIDDIR ; chown -R
$SQUID_USER.$SQUID_GROUP $SQUID_PIDDIR; fi

2. A killall on "stop" because if not the helper processes doesnt die:
killall -u $SQUID_USER

3. An "rm" to delete ipc files, since they still there when squid
stops and then the restart/start breaks:
rm -rf $SQUID_PIDDIR/*

Here it is:
http://pastebin.com/1C6mkuTw

I think that killall and rm -rf on squid pid files arent the best way
to go, but, it is the only I know that did it work properly. Can you
contribute to my script, or, even check if squid daemon could clean
the ipc files and kill the helper processes when it dies?
]
(maybe we should start a new trhead for this?)

--
Att...
Ricardo Felipe Klein
klein.rfk_at_gmail.com
Received on Mon Jun 24 2013 - 13:55:56 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 24 2013 - 12:00:05 MDT