diff options
Diffstat (limited to '')
-rwxr-xr-x | libexec/fence/functions/status | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libexec/fence/functions/status b/libexec/fence/functions/status new file mode 100755 index 0000000..03eaed2 --- /dev/null +++ b/libexec/fence/functions/status @@ -0,0 +1,14 @@ +#!/bin/sh -x + +set -e + +NAME="${@}" + +if sudo cnt list -f sh -s | grep -qs "^${NAME}" +then + CNT_STATUS="started" +else + CNT_STATUS="stopped" +fi + +export CNT_STATUS=${CNT_STATUS} |