summaryrefslogtreecommitdiff
path: root/pcr/zoneminder/zoneminder.service
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-05-12 06:14:30 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-05-12 06:14:30 -0300
commite806fdd6fdcab100f7685dadd2b4dca04675b3d0 (patch)
tree30c3cd4c3705cf774a084c3bcae4fd12f7555c12 /pcr/zoneminder/zoneminder.service
parent345b8c4070212e489cfc754155bc8dfea4db17b3 (diff)
downloadabslibre-e806fdd6fdcab100f7685dadd2b4dca04675b3d0.tar.gz
abslibre-e806fdd6fdcab100f7685dadd2b4dca04675b3d0.tar.bz2
abslibre-e806fdd6fdcab100f7685dadd2b4dca04675b3d0.zip
moved blender-addon-ogre,cambozola,collada-dom,mednafen-server,mitsuba,nexuiz,nexuiz-data,noip,openssh-knock,renpy,supermodel,systemd-knock,tupi,xcftools,yafaray,zoneminder to [pcr] repo
Diffstat (limited to 'pcr/zoneminder/zoneminder.service')
-rw-r--r--pcr/zoneminder/zoneminder.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/pcr/zoneminder/zoneminder.service b/pcr/zoneminder/zoneminder.service
new file mode 100644
index 000000000..83d992aa7
--- /dev/null
+++ b/pcr/zoneminder/zoneminder.service
@@ -0,0 +1,18 @@
+# ZoneMinder systemd unit file
+# This file is intended to work with all distributions with Systemd
+
+[Unit]
+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
+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