Dear list,

on line 117 in ocf::heartbeat::Pure-FTPd, pure-ftpd is started via

  $OCF_RESKEY_script $OCF_RESKEY_conffile -g $PIDFILE

on debian etch, pure-ftpd is started by the wrapper
"/usr/sbin/pure-ftpd-wrapper" 
which reads a different configuration structure from /etc/pure-ftpd/ 
and expects to be called similar to:

  STANDALONE_OR_INETD=standalone $OCF_RESKEY_script

so one need to 1) set a shell environment variable and 2) call it 
without -g $PIDFILE.

moreover, in this wrapper, PIDFILE is hardwired to 

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

whereas in the ocf, PIDFILE is hardwired to 

  ${HA_RSCTMP}/pure-ftpd-${OCF_RESOURCE_INSTANCE}.pid

as i am not that familiar with ocf scripts, default values and overriding 
default values, in what way should one patch the ocf script, so it 
still works as before but can too be used with debian?

my current, ugly hack looks like the diff attached.

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          [EMAIL PROTECTED]
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            [EMAIL PROTECTED]
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________

Attachment: Pure-FTPD.hack.diff
Description: Binary data

_______________________________________________
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