Oops! Spoke too fast. The fix below allows squid to start. But the
script also has problems in the 'stop' part. It is stuck in an
infinite loop and here are the logs (repeats every second) :

Jul 25 11:38:47 corsen-a lrmd: [24099]: info: RA output:
(Proxy:stop:stderr) /usr/lib/ocf/resource.d//heartbeat/Squid: line
320: kill: -: arguments must be process or job IDs
Jul 25 11:38:47 corsen-a lrmd: [24099]: info: RA output:
(Proxy:stop:stderr) /usr/lib/ocf/resource.d//heartbeat/Squid: line
320: kill: -: arguments must be process or job IDs
Jul 25 11:38:48 corsen-a Squid(Proxy)[24659]: [25682]: INFO:
squid:stop_squid:318:  try to stop by SIGKILL: -
Jul 25 11:38:48 corsen-a Squid(Proxy)[24659]: [25682]: INFO:
squid:stop_squid:318:  try to stop by SIGKILL: -

Being on a deadline, I'll use the lsb script for the moment. If
someone figures out how to use this ocf script, I'm very interrested.

Regards


2012/7/24 Julien Cornuwel <cornu...@gmail.com>:
> Hi,
>
> Fixed! The problem comes from the squid ocf script
> (/usr/lib/ocf/resource.d/heartbeat/Squid) that doesn't handle IPv6
> addresses correctly.
> All you have to do is modify the line 198 as such :
> awk '/(tcp.*[0-9]+\.[0-9]+\.+[0-9]+\.[0-9]+:'$SQUID_PORT'
> |tcp.*:::'$SQUID_PORT' )/{
>
> Source: 
> http://www.n3oxid.fr/index.php?post/2012/04/07/Installation-et-configuration-d-un-cluster-Pacemaker/CoroSync-sous-GNU/Linux-Debian-6-%28Squeeze%29
>
> Cheers,

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to