Am 02.07.2013 14:13, schrieb Tony Stocker:

I'm having a problem with the ProFTPD OCF script (/usr/lib/ocf/resource.d/heartbeat/proftpd) and the monitor function.

primitive TEST-PROFTPD ocf:heartbeat:proftpd \
params conffile="/usr/local/etc/test_proftpd.conf" binary="/usr/local/sbin/proftpd" test_user="gpmreal" test_pass="[email protected]" curl_url="ftp://hacbackup.blah.blah.bla"; pidfile="/var/run/test_proftpd.pid" \


# /etc/init.d/proftpd status
proftpd (pid 482) is running...

So it seems to know where to look for the PID, or else it's doing something different entirely to determine the status.

Note that you are doing two different things: you tell the HA stack to use the OCF script for proftpd, which resides somewher down /usr depending on your distribution, and you now started proftpd via its init script - which might use entirely different settings for proftpd. You either want to use define the resource as a LSB resource (which means "use the existing init script for managing this resource" or test the OCF script calls using the ocf_tester script and make sure that the OCF script invokes proftpd in the same way and with the same PID file locations as the LSB init script in /etc/init.d .

Hopel this helps,
Jakob Curdes

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to