diff options
Diffstat (limited to 'extra')
-rw-r--r-- | extra/oxidized.supervisord | 10 | ||||
-rw-r--r-- | extra/oxidized.upstart | 18 |
2 files changed, 28 insertions, 0 deletions
diff --git a/extra/oxidized.supervisord b/extra/oxidized.supervisord new file mode 100644 index 0000000..3bef7fa --- /dev/null +++ b/extra/oxidized.supervisord @@ -0,0 +1,10 @@ +# by @MrRJ45 at issues #45 + +[program:oxidized] +command=/usr/local/bin/oxidized +autostart=true +autorestart=true +user=oxidized +stderr_logfile=/var/log/oxidized.err.log +stdout_logfile=/var/log/oxidized.out.log +environment=HOME='/home/oxidized/' diff --git a/extra/oxidized.upstart b/extra/oxidized.upstart new file mode 100644 index 0000000..26a0f83 --- /dev/null +++ b/extra/oxidized.upstart @@ -0,0 +1,18 @@ +# by @andrewpwade in issue #45 + +start on started networking + +respawn + +setuid oxidized +setgid oxidized + +chdir /home/oxidized + +env HOME=/home/oxidized + +pre-start script + test -x /usr/local/bin/oxidized || { stop; exit 0; } +end script + +exec /usr/local/bin/oxidized |