summaryrefslogtreecommitdiff
path: root/extra/rvm.oxidized.upstart
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-12-28 14:30:44 +0200
committerytti <saku@ytti.fi>2015-12-28 14:30:44 +0200
commita6f7f8de57d3c2691ff68375aeda78e880e58384 (patch)
treefab03d82b06fd3dcd975eaf1e63aec1161d5ed06 /extra/rvm.oxidized.upstart
parentbbae7ec0a0873d31087196579eeec736aea8b825 (diff)
parenteebdc62dfd61e6e43d8374ef669428f4432b0c26 (diff)
Merge pull request #238 from danbaugher/master
Added upstart job for ubuntu RVM installs
Diffstat (limited to 'extra/rvm.oxidized.upstart')
-rw-r--r--extra/rvm.oxidized.upstart18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/rvm.oxidized.upstart b/extra/rvm.oxidized.upstart
new file mode 100644
index 0000000..23b5d69
--- /dev/null
+++ b/extra/rvm.oxidized.upstart
@@ -0,0 +1,18 @@
+start on started networking
+
+respawn
+
+setuid oxidized
+setgid oxidized
+
+chdir /home/oxidized
+
+env HOME=/home/oxidized
+
+pre-start script
+ test -x /usr/local/rvm/wrappers/ruby-2.1.2/oxidized || { stop; exit 0; }
+end script
+
+script
+ exec /usr/local/rvm/wrappers/ruby-2.1.2/oxidized
+end script \ No newline at end of file