summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/mythzmserver/run
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/mythzmserver/run')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/mythzmserver/run11
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/mythzmserver/run b/abs/core/runit-scripts/runitscripts/services/mythzmserver/run
new file mode 100755
index 0000000..f925255
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/mythzmserver/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+#set -x
+exec 2>&1
+export TERM=linux
+MYTH_RUN_STATUS="1"
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/profile
+setfacl -R -m u:http:rX /etc/zm.conf
+stat_runit "Starting MythZoneminder Service"
+exec sudo -u http "mythzmserver"