a0cb791f47
* Updated the pcs wrapper to flock anything but status calls. * Updated scan-apc-pdu to purge regardless of the host it's called on any host. * Fixed a bug striker-purge-target that wouldn't purge anvil nodes in various cases. Signed-off-by: digimer <mkelly@alteeve.ca>
11 lines
112 B
Bash
Executable File
11 lines
112 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
(
|
|
if [ "$1" == "status" ]; then
|
|
pcs $@
|
|
exit $?
|
|
fi
|
|
flock -e 200
|
|
pcs $@
|
|
) 200>/tmp/pcs.lock
|