<p dir="ltr">Hi Michael. I wrote this a while back. It may not be what you're looking for or it may be out of date but see if it helps.</p>
<p dir="ltr"><a href="http://wmdzone.blogspot.co.uk/2011/02/making-bash-scripts-ha-compatible.html">http://wmdzone.blogspot.co.uk/2011/02/making-bash-scripts-ha-compatible.html</a><br></p>
<p dir="ltr">Sent from my Nexus.</p>
<div class="gmail_quote">On 12 Mar 2013 11:19, "Michael Smith" <<a href="mailto:michael.smith@hipcom.co.uk">michael.smith@hipcom.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I think it’s quite simple but I can’t see how to do it.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have a two node cluster serving up a samba share and allowing access via sftp, these I have all working fine, but for the following.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In order to have samba and sftp working together on the same directories I need to do a mount –o bind <path> <mountpoint>.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This I need to be done when the cluster fails over, it’s a one off event and doesn’t have a any running process or require a start/stop script. I have written the script but I now need it to run as a clustered resource, once the file system
has been mounted (drdb) and before I start samba and set the virtual IP.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hope you can help.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Michael Smith<u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div>