summarylogtreecommitdiffstats
path: root/zoneminder.service
diff options
context:
space:
mode:
authorTroy Will2015-07-26 21:40:12 -0700
committerTroy Will2015-07-26 21:40:12 -0700
commit9547e68d54527f371913d8ad1f070c17beec1dd4 (patch)
tree7a6d50ed75a8ff95940eed7f66c60e84bae1f6e7 /zoneminder.service
downloadaur-9547e68d54527f371913d8ad1f070c17beec1dd4.tar.gz
Initial commit
Diffstat (limited to 'zoneminder.service')
-rw-r--r--zoneminder.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/zoneminder.service b/zoneminder.service
new file mode 100644
index 000000000000..4ba745844503
--- /dev/null
+++ b/zoneminder.service
@@ -0,0 +1,17 @@
+# ZoneMinder systemd unit file for Arch Linux
+
+[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=/usr/bin/zmpkg.pl stop
+PIDFile="/srv/zoneminder/zm.pid"
+
+[Install]
+WantedBy=multi-user.target