Hi all, I have 2 Debian nodes with heartbeat and pacemaker installed. Everything seems that works fine but I have a little problem and two doubts First of all, this my crm configuration: node $id="1a806807-0ba5-4f82-9e68-552b80c18031" node01 \ attributes standby="off" node $id="e50dc4cd-fd15-4819-8dda-fd144ab2546d" node02 primitive apacheha lsb:apache2 \ op monitor interval="15s" timeout="20s" primitive haip1 ocf:heartbeat:IPaddr2 \ params ip="192.168.1.90" cidr_netmask="32" nic="eth0" \ op monitor interval="30s" location cli-prefer-haip1 haip1 \ rule $id="cli-prefer-rule-haip1" inf: #uname eq node01 colocation apacheha-haip1 inf: haip1 apacheha order ip-apache inf: haip1 apacheha property $id="cib-bootstrap-options" \ dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \ cluster-infrastructure="Heartbeat" \ stonith-enabled="false" \ expected-quorum-votes="1" \ no-quorum-policy="ignore" \ start-failure-is-fatal="false" rsc_defaults $id="rsc-options" \ resource-stickiness="100" When I type: "crm node standby node01" everything works as expected, apache service promoted to node02 and the web service keep running. Then, when node01 is active again, the apache resource goes to node01 again. Everything perfect.... BUT My problem: I just want to know if I type "/etc/init.d/apache2 stop, the pacemaker resource apache move to node02 but I cant check this cause there are something that restart the service apache2 almost instantly. Cause if node01 does not crash completely, but only apache2 service stop unexpectedly, can pacemaker be configure to migrate the resource to node02? Doubts: 1) Why pacemaker is restarting apache2 service automatically and what can I do to stop apache2 service forever until I start it again? 2) I have a script that I just want to execute only in the active node, how can I know wich node is the master and how can I put that on a script? Thanks a lot in advance.