[Pacemaker] question on "on-fail=restart"

Brusq, Jerome Jerome.Brusq at signalis.com
Wed Dec 18 12:03:06 EST 2013


Dear all,

I have a  custom lsb script that launch a custom process.

primitive myscript lsb:ha_swift \
   op start interval="0" timeout="30s" \
   op stop interval="0" timeout="30s" \
   op monitor interval="15s" on-fail="restart" \

When this one crashes, I have the feeling that pacemaker do :
"/etc/init.d/myscript stop"
Then,
"/etc/init.d/myscript start"

Is there a way for pacemaker to do "/etc/init.d/myscript restart" (of course my "restart" option is doing something a little bit different that a stop + start in my script ....)

Thanks!

Jerome


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131218/5af33f05/attachment-0002.html>


More information about the Pacemaker mailing list