summaryrefslogtreecommitdiff
path: root/extra/oxidized.upstart
diff options
context:
space:
mode:
Diffstat (limited to 'extra/oxidized.upstart')
-rw-r--r--extra/oxidized.upstart18
1 files changed, 18 insertions, 0 deletions
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