summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarkus Strauss <Markus@ITstrauss.eu>2011-10-28 14:27:47 -0400
committerMarkus Strauss <Markus@ITstrauss.eu>2011-10-28 14:27:47 -0400
commit80dd5f659566d11b4f210b218e0c254271f1cb24 (patch)
treed8de8154bb9b51dc73f52978da3e723d8a007abd /templates
parent8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e (diff)
downloadpuppet-runit-80dd5f659566d11b4f210b218e0c254271f1cb24.tar.gz
puppet-runit-80dd5f659566d11b4f210b218e0c254271f1cb24.tar.bz2
new command parameter with default run script template
Diffstat (limited to 'templates')
-rw-r--r--templates/run.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/run.erb b/templates/run.erb
new file mode 100644
index 0000000..f02a486
--- /dev/null
+++ b/templates/run.erb
@@ -0,0 +1,8 @@
+#!/bin/bash
+envdir=<%= svbase %>/env
+root=<%= rundir %>
+echo Starting <%= name %> from $root
+cd $root
+
+exec 2>&1
+exec chpst -e $envdir -u <%= user %>:<%= group %> <%= command %>