add service and temp files

This commit is contained in:
Sebastian Kaminski 2015-05-24 22:09:43 +02:00
parent a671b452a8
commit 3080ecdb20
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# ZoneMinder systemd unit file
# This file is intended to work with all Linux distributions
[Unit]
Description=ZoneMinder CCTV recording and security system
After=network.target mysql.service apache2.service
Requires=mysql.service apache2.service
[Service]
User=www-data
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile="/run/zm/zm.pid"
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,2 @@
d /var/run/zm 0755 www-data www-data