summarylogtreecommitdiffstats
path: root/zoneminder.service
diff options
context:
space:
mode:
authorTroy Will2015-07-26 13:21:24 -0700
committerTroy Will2015-07-26 13:21:24 -0700
commit388a2c42e4b5fdf3cf936398f9c995ddacdfc92f (patch)
tree4bf452d069a86dda86d0c0d98c55ee028987258d /zoneminder.service
downloadaur-388a2c42e4b5fdf3cf936398f9c995ddacdfc92f.tar.gz
Initial import
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