<div dir="ltr"><div><div>HI .<br><br></div>My configuration file looks like this:<br><br>&lt;cib crm_feature_set=&quot;3.0.9&quot; validate-with=&quot;pacemaker-2.0&quot; epoch=&quot;38&quot; num_updates=&quot;0&quot; admin_epoch=&quot;0&quot; cib-last-written=&quot;Fri Jul 24 15:57:06 2015&quot; have-quorum=&quot;1&quot; dc-uuid=&quot;node2&quot;&gt;<br>  &lt;configuration&gt;<br>    &lt;crm_config&gt;<br>      &lt;cluster_property_set id=&quot;cib-bootstrap-options&quot;&gt;<br>        &lt;nvpair id=&quot;cib-bootstrap-options-dc-version&quot; name=&quot;dc-version&quot; value=&quot;1.1.11-97629de&quot;/&gt;<br>        &lt;nvpair id=&quot;cib-bootstrap-options-cluster-infrastructure&quot; name=&quot;cluster-infrastructure&quot; value=&quot;cman&quot;/&gt;<br>        &lt;nvpair id=&quot;cib-bootstrap-options-stonith-enabled&quot; name=&quot;stonith-enabled&quot; value=&quot;false&quot;/&gt;<br>        &lt;nvpair id=&quot;cib-bootstrap-options-no-quorum-policy&quot; name=&quot;no-quorum-policy&quot; value=&quot;ignore&quot;/&gt;<br>        &lt;nvpair id=&quot;cib-bootstrap-options-cluster-recheck-interval&quot; name=&quot;cluster-recheck-interval&quot; value=&quot;2s&quot;/&gt;<br>      &lt;/cluster_property_set&gt;<br>    &lt;/crm_config&gt;<br>    &lt;nodes&gt;<br>      &lt;node id=&quot;node1&quot; uname=&quot;node1&quot;/&gt;<br>      &lt;node id=&quot;node2&quot; uname=&quot;node2&quot;/&gt;<br>    &lt;/nodes&gt;<br>    &lt;resources&gt;<br>      &lt;primitive class=&quot;ocf&quot; id=&quot;my_first_svc&quot; provider=&quot;heartbeat&quot; type=&quot;Dummy&quot;&gt;<br>        &lt;instance_attributes id=&quot;my_first_svc-instance_attributes&quot;/&gt;<br>        &lt;operations&gt;<br>          &lt;op id=&quot;my_first_svc-start-timeout-20&quot; interval=&quot;0s&quot; name=&quot;start&quot; timeout=&quot;20&quot;/&gt;<br>          &lt;op id=&quot;my_first_svc-stop-timeout-20&quot; interval=&quot;0s&quot; name=&quot;stop&quot; timeout=&quot;20&quot;/&gt;<br>          &lt;op id=&quot;my_first_svc-monitor-interval-120s&quot; interval=&quot;120s&quot; name=&quot;monitor&quot;/&gt;<br>        &lt;/operations&gt;<br>      &lt;/primitive&gt;<br>      &lt;primitive class=&quot;ocf&quot; id=&quot;WebSite&quot; provider=&quot;heartbeat&quot; type=&quot;apache&quot;&gt;<br>        &lt;instance_attributes id=&quot;WebSite-instance_attributes&quot;&gt;<br>          &lt;nvpair id=&quot;WebSite-instance_attributes-configfile&quot; name=&quot;configfile&quot; value=&quot;/etc/httpd/conf/httpd.conf&quot;/&gt;<br>          &lt;nvpair id=&quot;WebSite-instance_attributes-statusurl&quot; name=&quot;statusurl&quot; value=&quot;<a href="http://localhost/server-status">http://localhost/server-status</a>&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>        &lt;operations&gt;<br>          &lt;op id=&quot;WebSite-start-timeout-40s&quot; interval=&quot;0s&quot; name=&quot;start&quot; timeout=&quot;40s&quot; on-fail=&quot;restart&quot;/&gt;<br>          &lt;op id=&quot;WebSite-stop-timeout-60s&quot; interval=&quot;0s&quot; name=&quot;stop&quot; timeout=&quot;60s&quot; on-fail=&quot;restart&quot;/&gt;<br>          &lt;op id=&quot;WebSite-monitor-interval-1min&quot; interval=&quot;1min&quot; name=&quot;monitor&quot; on-fail=&quot;restart&quot;/&gt;<br>        &lt;/operations&gt;<br>        &lt;meta_attributes id=&quot;WebSite-meta_attributes&quot;/&gt;<br>      &lt;/primitive&gt;<br>    &lt;/resources&gt;<br>    &lt;constraints&gt;<br>      &lt;rsc_location id=&quot;location-WebSite-node2-50&quot; node=&quot;node2&quot; rsc=&quot;WebSite&quot; score=&quot;50&quot;/&gt;<br>  &lt;/constraints&gt;<br>    &lt;rsc_defaults&gt;<br>      &lt;meta_attributes id=&quot;rsc_defaults-options&quot;&gt;<br>        &lt;nvpair id=&quot;rsc_defaults-options-migration-threshold&quot; name=&quot;migration-threshold&quot; value=&quot;1&quot;/&gt;<br>      &lt;/meta_attributes&gt;<br>    &lt;/rsc_defaults&gt;<br>    &lt;op_defaults&gt;<br>      &lt;meta_attributes id=&quot;op_defaults-options&quot;&gt;<br>        &lt;nvpair id=&quot;op_defaults-options-timeout&quot; name=&quot;timeout&quot; value=&quot;240s&quot;/&gt;<br>      &lt;/meta_attributes&gt;<br>    &lt;/op_defaults&gt;<br>  &lt;/configuration&gt;<br>&lt;/cib&gt;<br><br></div>Once i stop the httpd service the pacemaker does not restarts it automatically.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 1:40 AM, Digimer <span dir="ltr">&lt;<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You will find people can help you better if you share your config and<br>
relevant log entries.<br>
<span class=""><br>
On 26/07/15 03:46 PM, Vijay Partha wrote:<br>
&gt; hi Victor,<br>
&gt;<br>
&gt; thank you for your reply.I tried doing this but this doesnt work.<br>
&gt;<br>
&gt; On Sun, Jul 26, 2015 at 12:43 PM, Victor José Acosta Domínguez<br>
</span><span class="">&gt; &lt;<a href="mailto:vic.ad94@gmail.com">vic.ad94@gmail.com</a> &lt;mailto:<a href="mailto:vic.ad94@gmail.com">vic.ad94@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi Vijay, you most set the option &quot;on-fail=restart&quot;.<br>
&gt;<br>
&gt;     in RedHat with pcs the commando will be &quot;pcs resource update<br>
&gt;     &lt;resource&gt; op on-fail=restart<br>
&gt;<br>
&gt;     i hope this works for you<br>
&gt;<br>
&gt;     Victor Acosta<br>
&gt;<br>
&gt;<br>
</span>&gt;     2015-07-26 15:38 GMT-04:00 Vijay Partha &lt;<a href="mailto:vijaysarathy94@gmail.com">vijaysarathy94@gmail.com</a><br>
&gt;     &lt;mailto:<a href="mailto:vijaysarathy94@gmail.com">vijaysarathy94@gmail.com</a>&gt;&gt;:<br>
<span class="">&gt;<br>
&gt;<br>
&gt;         ---------- Forwarded message ----------<br>
&gt;         From: *Vijay Partha* &lt;<a href="mailto:vijaysarathy94@gmail.com">vijaysarathy94@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:vijaysarathy94@gmail.com">vijaysarathy94@gmail.com</a>&gt;&gt;<br>
&gt;         Date: Sun, Jul 26, 2015 at 12:27 PM<br>
&gt;         Subject: Resource failure<br>
</span><span class="">&gt;         To: <a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a><br>
&gt;         &lt;mailto:<a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;         Hi.<br>
&gt;<br>
&gt;         I have been using pacemaker for quite some time. I want you guys<br>
&gt;         to help me out with an issue.My node is active and I have an<br>
&gt;         apache resource running as a resource.If my apache server goes<br>
&gt;         down, or if i manually kill the httpd service , I want the<br>
&gt;         pacemaker to automatically restart it. Could you help me out on<br>
&gt;         how to solve this issue?<br>
&gt;<br>
&gt;         Waiting for your reply.<br>
&gt;         Thanking you<br>
&gt;<br>
&gt;         --<br>
&gt;         With Regards<br>
&gt;         P.Vijay<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         With Regards<br>
&gt;         P.Vijay<br>
&gt;<br>
&gt;         _______________________________________________<br>
</span>&gt;         Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt;         &lt;mailto:<a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>&gt;<br>
<span class="">&gt;         <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;         Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
</span>&gt;         Getting started:<br>
<span class="">&gt;         <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;         Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</span>&gt;     _______________________________________________<br>
&gt;     Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a> &lt;mailto:<a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>&gt;<br>
<span class="">&gt;     <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;     Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
</span>&gt;     Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;     Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<span class="">&gt; --<br>
&gt; With Regards<br>
&gt; P.Vijay<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
</span>&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<span class="">&gt; <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
</span>&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
<br>
<span class=""><br>
--<br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.ca/w/" rel="noreferrer" target="_blank">https://alteeve.ca/w/</a><br>
</span><span class="">What if the cure for cancer is trapped in the mind of a person without<br>
access to education?<br>
<br>
_______________________________________________<br>
</span>Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<span class=""><a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
</span>Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>With Regards<br></div>P.Vijay<br></div></div>
</div>