File zm.service of Package ZoneMinder
[Unit] Description=ZoneMinder Video Surveillance System Requires=mysql.service systemd-sysctl.service After=mysql.service systemd-sysctl.service Wants=apache2.service [Service] Type=forking User=wwwrun PIDFile=/run/zm/zm.pid ExecStart=/usr/bin/zmpkg.pl start ExecStop=/usr/bin/zmpkg.pl stop ExecReload=/usr/bin/zmpkg.pl logrot Environment=HOME=/root/ ExecStartPre=+/usr/bin/zm_database_init --non-interactive TimeoutStartSec=infinity [Install] WantedBy=multi-user.target