summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/dnbd3/is-enabled
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/dnbd3/is-enabled')
-rwxr-xr-xsatellit_installer/static_files/dnbd3/is-enabled22
1 files changed, 0 insertions, 22 deletions
diff --git a/satellit_installer/static_files/dnbd3/is-enabled b/satellit_installer/static_files/dnbd3/is-enabled
deleted file mode 100755
index 11d1fb0..0000000
--- a/satellit_installer/static_files/dnbd3/is-enabled
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# Run as root!
-# Check if dnbd3 is configured active in slx-admin
-# If not, stop service and bail out, otherwise exit 0 to
-# signal systemd that the daemon should start.
-# Retry a couple of times if slx-admin returns
-# neither YES nor NO
-
-for i in 1 2 3 4 END; do
- RET=$(curl -m 3 -s 'http://127.0.0.1/slx-admin/api.php?do=dnbd3&get=enabled')
- [ "$RET" = "YES" ] && exit 0
- if [ "$RET" = "NO" ]; then
- systemctl stop dnbd3-server.service
- exit 1
- fi
- [ "$i" = "END" ] && break
- sleep "$i"
-done
-
-exit 2
-