summaryrefslogtreecommitdiffstats
path: root/libexec/fence/functions/start
diff options
context:
space:
mode:
authorDavid Kunz <david.kunz@dknet.ch>2021-07-12 13:37:46 +0000
committerDavid Kunz <david.kunz@dknet.ch>2021-08-24 13:08:31 +0000
commit0539d581dd588e494e6a42ab7335226162652f1e (patch)
tree371ae30a8bbf84ee32d294e49f43ff9aece388d6 /libexec/fence/functions/start
parentdaniels debian directory (temporary!) (diff)
downloadcompute-tools-0539d581dd588e494e6a42ab7335226162652f1e.tar.xz
compute-tools-0539d581dd588e494e6a42ab7335226162652f1e.zip
Adding fencing scripts.
Diffstat (limited to '')
-rwxr-xr-xlibexec/fence/functions/start8
1 files changed, 8 insertions, 0 deletions
diff --git a/libexec/fence/functions/start b/libexec/fence/functions/start
new file mode 100755
index 0000000..b71cd1b
--- /dev/null
+++ b/libexec/fence/functions/start
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+NAME="${@}"
+
+sudo cnt start -n ${NAME} 2> /dev/null
+exit $?