On 10/15/07, Raoul Bhatia [ IPAX ] <[EMAIL PROTECTED]> wrote:
> 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.

you're on the right track, you'd just need to wrap these changes in a
call to uname or something so that they only apply when running on
debian
_______________________________________________
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