Code: Select all
[gorf@zm ~]$sudo systemctl start zoneminder
Failed to start zoneminder.service: Unit not found.
This is what the rpm installed for a systemctl control file:
Code: Select all
[gorf@zm ~]$ cat /usr/lib/systemd/system/zoneminder.service
# 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=apache
Group=apache
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile=/var/run/zoneminder/zm.pid
Environment=TZ=/etc/localtime
RuntimeDirectory=zoneminder
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target