Skip to content

Commit

Permalink
Merge branch 'master' of github.com:darvid/nessusbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Aug 24, 2017
2 parents a8b3b1d + 6630e68 commit 7245bd3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ To run Nessusbeat with debugging output enabled, run:
./nessusbeat -c nessusbeat.yml -e -d "*"
```

To run on startup, see the [init-scripts](https://github.com/darvid/nessusbeat/tree/master/init-scripts)
folder for example configuration files for each init system.

### Roadmap

- [ ] Add option to poll remote Nessus and SecurityCenter
Expand Down
11 changes: 11 additions & 0 deletions init-scripts/nessusbeat.conf.upstart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description "nessusbeat"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env DAEMONUSER=root
env DAEMON=/opt/nessusbeat/nessusbeat
env DAEMON_ARGS="-c /opt/nessusbeat/nessusbeat.yml"
script
/bin/su - -c "$DAEMON $DAEMON_ARGS" $DAEMONUSER
end script
post-stop exec sleep 5
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 7245bd3

Please sign in to comment.