anvil/tools/anvil-pcs-wrapper
digimer a0cb791f47 This contains fixes needed for beta from additional testing.
* 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>
2023-08-09 18:07:03 -04:00

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