From 61c4e3c6efb156db0a4b546ed865f83d8f11c650 Mon Sep 17 00:00:00 2001 From: Adam Stauffer Date: Mon, 14 Aug 2017 16:48:44 -0500 Subject: [PATCH] systemd init script --- init-scripts/nessusbeat.service.systemd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 init-scripts/nessusbeat.service.systemd 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