From: Markus Strauss Date: Fri, 28 Oct 2011 19:44:59 +0000 (+0200) Subject: we make sure that the env dir. exists on service startup X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=07cc74784df0283292399acf646a0296ea475c14;p=puppet-runit.git we make sure that the env dir. exists on service startup --- 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 %>