From 0539d581dd588e494e6a42ab7335226162652f1e Mon Sep 17 00:00:00 2001 From: David Kunz Date: Mon, 12 Jul 2021 15:37:46 +0200 Subject: Adding fencing scripts. --- libexec/fence/functions/status | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 libexec/fence/functions/status (limited to 'libexec/fence/functions/status') 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} -- cgit v1.2.3