2016-05-01 11:46:09 +08:00
|
|
|
# ZoneMinder systemd unit file
|
|
|
|
# This file is intended to work with Debian distributions
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=ZoneMinder CCTV recording and surveillance system
|
|
|
|
After=network.target mysql.service
|
|
|
|
# Remarked out so that it will start ZM on machines that don't have mysql installed
|
|
|
|
#Requires=mysql.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
|
2019-05-02 22:52:19 +08:00
|
|
|
PIDFile=/run/zm/zm.pid
|
2017-10-25 07:24:23 +08:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
2016-09-30 02:24:49 +08:00
|
|
|
Environment=TZ=:/etc/localtime
|
2018-01-09 05:11:54 +08:00
|
|
|
TimeoutSec=600
|
2016-05-01 11:46:09 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|