ClusterLabs/pacemaker — pull request #538 by inouekazu (2014-06-11 08:52:52+00:00)
Title: Low: mcp: Add config example to exert watchdog of corosync

This request adds the config example that a watchdog of corosync works.

When pacemaker.combined (Upstart job) is used, watchdog of corosync does not work even if corosync process is terminated abnormally.
It's because pacemakerd is also terminated when corosync has terminated, so [restart][1] of pacemakerd and [corosync][2] is performed by Upstart.
```
$ initctl start pacemaker.combined
pacemaker.combined start/running, process 4711
$ ps -ef|egrep "coros|pacem"
root 4696 1 2 17:24 ? 00:00:00 corosync
root 4711 1 0 17:24 ? 00:00:00 pacemakerd
496 4715 4711 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/cib
root 4716 4711 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/stonithd
root 4717 4711 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/lrmd
496 4718 4711 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/attrd
496 4719 4711 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/pengine
$ pkill -9 corosync
$ ps -ef|egrep "coros|pacem"
root 4717 1 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/lrmd
496 4719 1 0 17:24 ? 00:00:00 /usr/libexec/pacemaker/pengine
root 4749 1 3 17:25 ? 00:00:00 corosync
root 4760 1 0 17:26 ? 00:00:00 pacemakerd
496 4764 4760 0 17:26 ? 00:00:00 /usr/libexec/pacemaker/cib
root 4765 4760 0 17:26 ? 00:00:00 /usr/libexec/pacemaker/stonithd
496 4766 4760 0 17:26 ? 00:00:00 /usr/libexec/pacemaker/attrd
496 4767 4760 0 17:26 ? 00:00:00 /usr/libexec/pacemaker/crmd
```
If corosync is terminated abnormally, I want to reboot a machine by watchdog, but cannot invalidate "respawn" stanza because I want to restart pacemakerd when pacemakerd is terminated abnormally.
[1]:https://github.com/ClusterLabs/pacemaker/blob/d924912/mcp/pacemaker.combined.upstart.in#L6
[2]:https://github.com/ClusterLabs/pacemaker/blob/d924912/mcp/pacemaker.combined.upstart.in#L24