diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-10 00:24:13 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-10 00:24:13 -0200 |
commit | c1e6308b7025623fe6f3e56b0abcaf1b3710dd4f (patch) | |
tree | 6194c10724b4a39259b7c807f0dcc4e898619bd1 /pcr/zoneminder/zoneminder.service | |
parent | 39e7daddb73f205693ff52cae7f77601a1eaea00 (diff) | |
download | abslibre-c1e6308b7025623fe6f3e56b0abcaf1b3710dd4f.tar.gz abslibre-c1e6308b7025623fe6f3e56b0abcaf1b3710dd4f.tar.bz2 abslibre-c1e6308b7025623fe6f3e56b0abcaf1b3710dd4f.zip |
update zoneminder
Diffstat (limited to 'pcr/zoneminder/zoneminder.service')
-rw-r--r-- | pcr/zoneminder/zoneminder.service | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pcr/zoneminder/zoneminder.service b/pcr/zoneminder/zoneminder.service index 05cae6f91..83d992aa7 100644 --- a/pcr/zoneminder/zoneminder.service +++ b/pcr/zoneminder/zoneminder.service @@ -1,13 +1,18 @@ +# ZoneMinder systemd unit file +# This file is intended to work with all distributions with Systemd + [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="/run/zm/zm.pid" [Install] WantedBy=multi-user.target |