sync up .service file to match 1604.
This commit is contained in:
parent
3e31203a22
commit
2427a5bf63
|
@ -4,7 +4,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=ZoneMinder CCTV recording and surveillance system
|
Description=ZoneMinder CCTV recording and surveillance system
|
||||||
After=network.target mysql.service
|
After=network.target mysql.service
|
||||||
Requires=mysql.service
|
# Remarked out so that it will start ZM on machines that don't have mysql installed
|
||||||
|
#Requires=mysql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
#User=www-data
|
#User=www-data
|
||||||
|
@ -13,7 +14,10 @@ ExecStart=/usr/bin/zmpkg.pl start
|
||||||
ExecReload=/usr/bin/zmpkg.pl restart
|
ExecReload=/usr/bin/zmpkg.pl restart
|
||||||
ExecStop=/usr/bin/zmpkg.pl stop
|
ExecStop=/usr/bin/zmpkg.pl stop
|
||||||
PIDFile=/var/run/zm/zm.pid
|
PIDFile=/var/run/zm/zm.pid
|
||||||
Restart=on-abnormal
|
Restart=always
|
||||||
|
RestartSec=10
|
||||||
|
Environment=TZ=:/etc/localtime
|
||||||
|
TimeoutSec=600
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue