summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2015-03-13 12:37:52 +0200
committerSaku Ytti <saku@ytti.fi>2015-03-13 12:37:52 +0200
commitec44d6ac0e20e60684e6901b3ed950d9b175803b (patch)
treec31bf2c8bd2bf6c52a306439d6630ea07ac27058 /extra
parent875c839a49bc01cafb0bb5afd79916019a127e57 (diff)
More examples
From issue #45
Diffstat (limited to 'extra')
-rw-r--r--extra/oxidized.supervisord10
-rw-r--r--extra/oxidized.upstart18
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