`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>
die "this host already contains virtual machines - please remove them first\n";
}
- if (system("corosync-quorumtool >/dev/null 2>&1") == 0) {
+ if (system("corosync-quorumtool -l >/dev/null 2>&1") == 0) {
die "corosync is already running\n";
}
}