Skip to content

Commit

Permalink
Merge pull request #1 from adamstauffer/master
Browse files Browse the repository at this point in the history
add example init script for upstart
  • Loading branch information
darvid authored Aug 3, 2017
2 parents 262e9e5 + 915b331 commit 66e2492
Show file tree
Hide file tree
Showing 2 changed files with 14 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

0 comments on commit 66e2492

Please sign in to comment.