Pure-FTPd RA script does not create the pid directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cluster-agents (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Actually Pure-FTPd ra script does not work out of box on ubuntu, this is for the following reasons:
- pid file in pure-ftpd wrapper is hard coded in /usr/sbin/
push(@options, '-g', '/var/run/
- the directory /var/run/pure-ftpd is deleted on each reboot
- the init script for pure-ftpd create the directory
- the ra script does not create that directory and so fails to start pure-ftpd
there are the following solutions:
1) add something like this:
if [ ! -d `dirname $OCF_RESKEY_
mkdir `dirname $OCF_RESKEY_
fi
at the beginning of the start function in the RA script
2) add something like this:
mkdir "/var/run/
after line 173 in the pure-ftpd wrapper script
3) change the wrapper script to make pid location configurable, so ra script can use a different pid file (probably require modifications to the ra script too)
4) make pure-ftpd init script lsb compliant and use it as lsb resource in pacemaker
5) make pure-ftpd init script upstart compliant and use it as upstart resource in pacemaker