diff options
author | Markus Strauss <Markus@ITstrauss.eu> | 2011-10-28 14:27:47 -0400 |
---|---|---|
committer | Markus Strauss <Markus@ITstrauss.eu> | 2011-10-28 14:27:47 -0400 |
commit | 80dd5f659566d11b4f210b218e0c254271f1cb24 (patch) | |
tree | d8de8154bb9b51dc73f52978da3e723d8a007abd /templates | |
parent | 8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e (diff) | |
download | puppet-runit-80dd5f659566d11b4f210b218e0c254271f1cb24.tar.gz puppet-runit-80dd5f659566d11b4f210b218e0c254271f1cb24.tar.bz2 |
new command parameter with default run script template
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 %> |