Hi,

thanks for your answer

Il 07/11/2011 18:27, Dejan Muhamedagic ha scritto:
Hi,

On Sat, Nov 05, 2011 at 10:26:12PM +0100, Mailing List SVR wrote:
Hi,

the script doesn't create the pid file directory if missing and so
None of the resource agents does that. Anyway, it needs to be
created just once per node and arguably it should be part of
deployment.

/var/run is a tmpfs so is cleaned every time you reboot the server, are you suggesting to do that in rc.local?

  Note that the default pidfile directory (shared by
all agents) should be created by the init script (IIRC).

please note that pure-ftpd on debian/ubuntu has the pid hardcoded to

/var/run/pure-ftpd/pure-ftpd.pid


and in general if a resource script accept a pidfile as configuration parameters should try to create the directory if missing.

Anyway is a fact that this resource script doesn't work on debian/ubuntu and the modify I sent solve the problem, please suggest a better approach if it is wrong (this is the first time I'm using resource scripts so maybe I'm missing something)

thanks
Nicola


Thanks,

Dejan

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

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@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


_______________________________________________
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to