From bdaf62a632a66c9267da8bfcbe3efefe1da52a8b Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sat, 22 Dec 2012 10:00:39 -0600
Subject: runit-scripts:  added mythzmserver

---
 abs/core/runit-scripts/PKGBUILD                               |  2 +-
 .../runit-scripts/runitscripts/services/mythzmserver/log/run  |  5 +++++
 abs/core/runit-scripts/runitscripts/services/mythzmserver/run | 11 +++++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100755 abs/core/runit-scripts/runitscripts/services/mythzmserver/log/run
 create mode 100755 abs/core/runit-scripts/runitscripts/services/mythzmserver/run

diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index fa70061..dc75fa8 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=runit-scripts
 pkgver=2.1.1
-pkgrel=104
+pkgrel=105
 pkgdesc="collection of startup scripts for runit"
 url="http://smarden.org/runit/"
 license="BSD"
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" 
-- 
cgit v0.12

