2014-08-10 21:47:11 +08:00
|
|
|
# ZoneMinder systemd unit file
|
|
|
|
# This file is intended to work with all Linux distributions
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=ZoneMinder CCTV recording and security system
|
2022-01-17 09:55:53 +08:00
|
|
|
After=network.target mysqld.service httpd.service janus.service
|
|
|
|
Requires=mysqld.service httpd.service janus.service
|
2014-08-10 21:47:11 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=@WEB_USER@
|
|
|
|
Type=forking
|
|
|
|
ExecStart=@BINDIR@/zmpkg.pl start
|
|
|
|
ExecReload=@BINDIR@/zmpkg.pl restart
|
2014-11-07 07:42:40 +08:00
|
|
|
ExecStop=@BINDIR@/zmpkg.pl stop
|
2017-03-29 20:53:15 +08:00
|
|
|
PIDFile=@ZM_RUNDIR@/zm.pid
|
2016-09-30 02:06:12 +08:00
|
|
|
Environment=TZ=:/etc/localtime
|
2014-08-10 21:47:11 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|