zoneminder/distros/redhat/common/zoneminder.service.in

22 lines
520 B
SYSTEMD
Raw Normal View History

2017-07-14 23:26:41 +08:00
# ZoneMinder systemd unit file for RedHat distros and clones
2018-11-18 00:45:08 +08:00
# See drop-in folder for additional config directives
[Unit]
Description=ZoneMinder CCTV recording and security system
2018-11-18 00:45:08 +08:00
After=network.target mariadb.service
Requires=mariadb.service
[Service]
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
RuntimeDirectory=zoneminder
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target