corosync/corosync — pull request #28 by inouekazu (2014-06-11 08:52:56+00:00)
Title: systemd unit: Add config example to exert watchdog

This request adds the config example that a watchdog works.

Since "[Requires=corosync.service][1]" is set to pacemaker.service, watchdog of corosync does not work if corosync and pacemaker are started using pacemaker.service.
```
$ systemctl start pacemaker
$ ps -ef|egrep "coros|pacem"
root 1644 1 5 17:28 ? 00:00:00 corosync
root 1650 1 0 17:28 ? 00:00:00 /usr/sbin/pacemakerd -f
haclust+ 1651 1650 1 17:28 ? 00:00:00 /usr/libexec/pacemaker/cib
root 1652 1650 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/stonithd
root 1653 1650 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/lrmd
haclust+ 1654 1650 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/attrd
haclust+ 1655 1650 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/pengine
haclust+ 1656 1650 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/crmd
$ pkill -9 corosync
$ ps -ef|egrep "coros|pacem"
root 1653 1 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/lrmd
haclust+ 1655 1 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/pengine
root 1679 1 7 17:28 ? 00:00:00 corosync
root 1685 1 0 17:28 ? 00:00:00 /usr/sbin/pacemakerd -f
haclust+ 1686 1685 1 17:28 ? 00:00:00 /usr/libexec/pacemaker/cib
root 1687 1685 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/stonithd
haclust+ 1688 1685 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/attrd
haclust+ 1689 1685 0 17:28 ? 00:00:00 /usr/libexec/pacemaker/crmd
```
It's because pacemakerd is also terminated when corosync has terminated, so restart of pacemakerd and (Requires=)**corosync**.service is performed by Systemd.
[1]:https://github.com/ClusterLabs/pacemaker/blob/d924912/mcp/pacemaker.service.in#L10