summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarkus Strauss <Markus@ITstrauss.eu>2011-10-28 21:44:59 +0200
committerMarkus Strauss <Markus@ITstrauss.eu>2011-10-28 21:44:59 +0200
commit07cc74784df0283292399acf646a0296ea475c14 (patch)
tree195abaaa3efcc9d92f26f9504b8b569ba54afbf2 /templates
parent60de9a59db80c2037e0da794df3e8680e309e3d6 (diff)
downloadpuppet-runit-07cc74784df0283292399acf646a0296ea475c14.tar.gz
puppet-runit-07cc74784df0283292399acf646a0296ea475c14.tar.bz2
we make sure that the env dir. exists on service startup
Diffstat (limited to 'templates')
-rw-r--r--templates/run.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/run.erb b/templates/run.erb
index f02a486..d8c1a81 100644
--- a/templates/run.erb
+++ b/templates/run.erb
@@ -1,8 +1,8 @@
#!/bin/bash
envdir=<%= svbase %>/env
root=<%= rundir %>
-echo Starting <%= name %> from $root
+echo "Starting <%= name %> from ${root}"
cd $root
-
+mkdir -p "${envdir}"
exec 2>&1
-exec chpst -e $envdir -u <%= user %>:<%= group %> <%= command %>
+exec chpst -e "${envdir}" -u <%= user %>:<%= group %> <%= command %>