diff --git a/init-scripts/nessusbeat.service.systemd b/init-scripts/nessusbeat.service.systemd new file mode 100644 index 0000000..154d18b --- /dev/null +++ b/init-scripts/nessusbeat.service.systemd @@ -0,0 +1,15 @@ +[Unit] +Description=nessusbeat +After=network.target + +[Service] +User=root +WorkingDirectory=/opt/nessusbeat +ExecStart=/opt/nessusbeat/nessusbeat -c nessusbeat.yml +ExecReload=/bin/kill -s HUP $MAINPID +ExecStop=/bin/kill -s TERM $MAINPID +Restart=always +ExecStopPost=/bin/sleep 5 + +[Install] +WantedBy=multi-user.target