1 2 3 4 5 6 7 8 9 10 11 12 13 14
[Unit] Description=Capture, analyse, record and monitor video security cameras After=network.target remote-fs.target Required=mysqld.service [Service] Type=forking PIDFile=/run/zm.pid ExecStart=/usr/bin/zmpkg.pl start ExecRestart=/usr/bin/zmpkg.pl restart ExecStop=/usr/bin/zmpkg.pl stop [Install] WantedBy=multi-user.target