From ec44d6ac0e20e60684e6901b3ed950d9b175803b Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 13 Mar 2015 12:37:52 +0200 Subject: More examples From issue #45 --- extra/oxidized.supervisord | 10 ++++++++++ extra/oxidized.upstart | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 extra/oxidized.supervisord create mode 100644 extra/oxidized.upstart 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 -- cgit v1.2.1