Skip to content

Commit

Permalink
Merge pull request #2 from adamstauffer/master
Browse files Browse the repository at this point in the history
systemd init script
  • Loading branch information
darvid authored Aug 14, 2017
2 parents 66e2492 + 61c4e3c commit 6630e68
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions init-scripts/nessusbeat.service.systemd
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6630e68

Please sign in to comment.