23 lines
655 B
SYSTEMD
23 lines
655 B
SYSTEMD
# ZoneMinder systemd unit file for Fedora
|
|
# Replace mariadb with community-mysql if using mysql service instead of mariadb
|
|
|
|
[Unit]
|
|
Description=ZoneMinder CCTV recording and security system
|
|
After=network.target mariadb.service nginx.service php-fpm.service fcgiwrap.service
|
|
Requires=mariadb.service nginx.service php-fpm.service fcgiwrap.service
|
|
|
|
[Service]
|
|
User=@WEB_USER@
|
|
Group=@WEB_GROUP@
|
|
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
|