summaryrefslogtreecommitdiffstats
path: root/main/zoneminder/zoneminder.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/zoneminder/zoneminder.initd')
-rw-r--r--main/zoneminder/zoneminder.initd7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/zoneminder/zoneminder.initd b/main/zoneminder/zoneminder.initd
index 592faca6a..bfb32318d 100644
--- a/main/zoneminder/zoneminder.initd
+++ b/main/zoneminder/zoneminder.initd
@@ -16,6 +16,7 @@ start() {
if status > /dev/null; then
ewarn "$name already started"
else
+ mkrundir
$command start
fi
eend $?
@@ -51,3 +52,9 @@ perms() {
chown -R $ZM_WEB_USER:$ZM_WEB_GROUP \
/var/*/zoneminder
}
+
+mkrundir() {
+ . /etc/zm.conf
+ install -d -o $ZM_WEB_USER -g $ZM_WEB_GROUP \
+ /var/run/zoneminder
+}