summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-22 16:00:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-22 16:00:39 (GMT)
commitbdaf62a632a66c9267da8bfcbe3efefe1da52a8b (patch)
tree119c70e0d6bcb3cb3c8da73f24b81094c1268b47 /abs/core/runit-scripts/runitscripts
parent30d0cdae800d622b8b7b51ca2d28a62c83f838df (diff)
downloadlinhes_pkgbuild-bdaf62a632a66c9267da8bfcbe3efefe1da52a8b.zip
linhes_pkgbuild-bdaf62a632a66c9267da8bfcbe3efefe1da52a8b.tar.gz
linhes_pkgbuild-bdaf62a632a66c9267da8bfcbe3efefe1da52a8b.tar.bz2
runit-scripts: added mythzmserver
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/mythzmserver/log/run5
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/mythzmserver/run11
2 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/mythzmserver/log/run b/abs/core/runit-scripts/runitscripts/services/mythzmserver/log/run
new file mode 100755
index 0000000..e08d29e
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/mythzmserver/log/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+. /etc/systemconfig
+ /usr/bin/logger -p local6.info -t mythzmserver
+
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"