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
|
2015-02-09 07:56:44 +08:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=ZoneMinder CCTV recording and security system
|
2018-11-18 00:45:08 +08:00
|
|
|
After=network.target mariadb.service
|
|
|
|
Requires=mariadb.service
|
2020-09-17 22:16:28 +08:00
|
|
|
BindsTo=mariadb.service
|
2015-02-09 07:56:44 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
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
|
|
|
|
|