[Pacemaker] Pure-FTPd resource script is wrong (at least on ubuntu and probably debian)
Mailing List SVR
lists at svrinformatica.it
Sat Nov 5 21:34:42 UTC 2011
Il 05/11/2011 22:26, Mailing List SVR ha scritto:
> Hi,
>
> the script doesn't create the pid file directory if missing and so
> pure-ftpd starts but no pidfile is created and the motion function
> fails and try top start pure-ftpd again but this time the address is
> already in use and so on,
>
> must be added something like this before start pure-ftpd:
>
> if [ ! -e `dirname $PIDFILE` ];then
> mkdir `dirname $PIDFILE`
> fi
this is better:
if [ ! -d `dirname $OCF_RESKEY_pidfile` ];then
mkdir `dirname $OCF_RESKEY_pidfile`
fi
I added at the beginning of the start function,
Nicola
>
> please apply,
>
> thanks
> Nicola
>
> P.S. I'm testing on ubuntu 11.10, note also that on ubuntu 11.10 seems
> the pid is hardcoded to /var/run/pure-ftpd/pure-ftpd.pid
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
More information about the Pacemaker
mailing list