20 lines
441 B
SYSTEMD
20 lines
441 B
SYSTEMD
|
# 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@
|
||
|
Type=forking
|
||
|
ExecStart=@BINDIR@/zmpkg.pl start
|
||
|
ExecReload=@BINDIR@/zmpkg.pl restart
|
||
|
ExecStop=@BINDIR@/zmpkg.pl stop
|
||
|
PIDFile="@ZM_RUNDIR@/zm.pid"
|
||
|
Environment=TZ=/etc/localtime
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|