summaryrefslogtreecommitdiffstats
path: root/libexec/fence/functions/status
blob: 03eaed2e97d3f4a0e71622f14d0aee05218ece03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}