diff options
author | Markus Strauss <Markus@ITstrauss.eu> | 2011-10-28 21:44:59 +0200 |
---|---|---|
committer | Markus Strauss <Markus@ITstrauss.eu> | 2011-10-28 21:44:59 +0200 |
commit | 07cc74784df0283292399acf646a0296ea475c14 (patch) | |
tree | 195abaaa3efcc9d92f26f9504b8b569ba54afbf2 /templates | |
parent | 60de9a59db80c2037e0da794df3e8680e309e3d6 (diff) | |
download | puppet-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.erb | 6 |
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 %> |