]> git.proxmox.com Git - pve-cluster.git/commit
pvecm add: fix check if corosync alread runs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Feb 2017 15:59:04 +0000 (16:59 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Feb 2017 10:38:15 +0000 (11:38 +0100)
commitcecd0323cc841d0ae2a6395d9e1e6fec6115c93b
tree8573390a8ab1653d91539449afe72d23882bd357
parent77a620a8f9aa749580679dd687d233c52526b1f6
pvecm add: fix check if corosync alread runs

`corosync-quorumtool` exit with 1 (CS_OK) if corosync runs and is
quorate.
Use `corosync-quorumtool -l` (list nodes) instead, this returns
1 if corosync does not run
0 if corosync runs, independent if a cluster is quorate or not.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/CLI/pvecm.pm