2015-02-09 07:56:44 +08:00
|
|
|
# ZoneMinder systemd unit file for CentOS 7
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=ZoneMinder CCTV recording and security system
|
|
|
|
After=network.target mariadb.service httpd.service
|
|
|
|
Requires=mariadb.service httpd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=@WEB_USER@
|
2017-01-04 03:12:12 +08:00
|
|
|
Group=@WEB_GROUP@
|
2015-02-09 07:56:44 +08:00
|
|
|
Type=forking
|
|
|
|
ExecStart=@BINDIR@/zmpkg.pl start
|
|
|
|
ExecReload=@BINDIR@/zmpkg.pl restart
|
|
|
|
ExecStop=@BINDIR@/zmpkg.pl stop
|
2017-01-03 00:37:23 +08:00
|
|
|
PIDFile=@ZM_RUNDIR@/zm.pid
|
2016-11-23 02:43:56 +08:00
|
|
|
Environment=TZ=/etc/localtime
|
2017-01-04 03:12:12 +08:00
|
|
|
RuntimeDirectory=zoneminder
|
|
|
|
RuntimeDirectoryMode=0755
|
2015-02-09 07:56:44 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|