From 80dd5f659566d11b4f210b218e0c254271f1cb24 Mon Sep 17 00:00:00 2001 From: Markus Strauss Date: Fri, 28 Oct 2011 14:27:47 -0400 Subject: new command parameter with default run script template --- templates/run.erb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/run.erb (limited to 'templates') 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 %> -- cgit v1.2.3