summaryrefslogtreecommitdiffstats
path: root/abs/core/zoneminder/zoneminder.service
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-20 17:12:23 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-20 17:12:23 (GMT)
commitcc90fc2cb2d57a6bf9b040001f8950fff50c967a (patch)
treec6408835943e349cf11f933e1f7687f418a71048 /abs/core/zoneminder/zoneminder.service
parentf7ae4ba2fd32b939353f06c9f39d7dcdbd229601 (diff)
downloadlinhes_pkgbuild-cc90fc2cb2d57a6bf9b040001f8950fff50c967a.zip
linhes_pkgbuild-cc90fc2cb2d57a6bf9b040001f8950fff50c967a.tar.gz
linhes_pkgbuild-cc90fc2cb2d57a6bf9b040001f8950fff50c967a.tar.bz2
zoneminder: update to 1.28
Diffstat (limited to 'abs/core/zoneminder/zoneminder.service')
-rw-r--r--abs/core/zoneminder/zoneminder.service15
1 files changed, 10 insertions, 5 deletions
diff --git a/abs/core/zoneminder/zoneminder.service b/abs/core/zoneminder/zoneminder.service
index 05cae6f..1314521 100644
--- a/abs/core/zoneminder/zoneminder.service
+++ b/abs/core/zoneminder/zoneminder.service
@@ -1,13 +1,18 @@
+# ZoneMinder systemd unit file
+# This file is intended to work with all Linux distributions
+
[Unit]
-Description=Capture, analyse, record and monitor video security cameras
-After=network.target remote-fs.target
-Required=mysqld.service
+Description=ZoneMinder CCTV recording and security system
+After=network.target mysqld.service httpd.service
+Requires=mysqld.service httpd.service
[Service]
+User=http
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
-ExecRestart=/usr/bin/zmpkg.pl restart
-ExecStop=/usr/bin/zmpkg.pl stop
+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"
[Install]
WantedBy=multi-user.target