summaryrefslogtreecommitdiffstats
path: root/abs/core/zoneminder/zoneminder.service
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-09-26 22:09:16 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-09-26 22:09:16 (GMT)
commit75f31c7a5d9c8fc44cf9432a23873cc8b55d036f (patch)
tree135ed2e99ddaeb2d7f5b33ac155b76fdab546adc /abs/core/zoneminder/zoneminder.service
parent4add9e1eee8d0f82289600efb4357d2565e5dd09 (diff)
downloadlinhes_pkgbuild-75f31c7a5d9c8fc44cf9432a23873cc8b55d036f.zip
linhes_pkgbuild-75f31c7a5d9c8fc44cf9432a23873cc8b55d036f.tar.gz
linhes_pkgbuild-75f31c7a5d9c8fc44cf9432a23873cc8b55d036f.tar.bz2
zoneminder: update to 1.30. refs #1004
Diffstat (limited to 'abs/core/zoneminder/zoneminder.service')
-rw-r--r--abs/core/zoneminder/zoneminder.service7
1 files changed, 2 insertions, 5 deletions
diff --git a/abs/core/zoneminder/zoneminder.service b/abs/core/zoneminder/zoneminder.service
index 1314521..48268f1 100644
--- a/abs/core/zoneminder/zoneminder.service
+++ b/abs/core/zoneminder/zoneminder.service
@@ -1,6 +1,3 @@
-# ZoneMinder systemd unit file
-# This file is intended to work with all Linux distributions
-
[Unit]
Description=ZoneMinder CCTV recording and security system
After=network.target mysqld.service httpd.service
@@ -11,8 +8,8 @@ User=http
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
-ExecStop=/bin/bash -c '[[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.pl stop'
-PIDFile="/var/run/zm/zm.pid"
+ExecStop=/usr/bin/zmpkg.pl stop
+PIDFile=/run/zoneminder/zm.pid
[Install]
WantedBy=multi-user.target