diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/run.erb | 8 |
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 %> |