diff options
author | Markus Strauss <Markus@ITstrauss.eu> | 2011-10-27 20:34:29 -0400 |
---|---|---|
committer | Markus Strauss <Markus@ITstrauss.eu> | 2011-10-27 20:34:29 -0400 |
commit | 8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e (patch) | |
tree | 3926de63459638b055852d0b97eb7540ddac426a /templates | |
download | puppet-runit-8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e.tar.gz puppet-runit-8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e.tar.bz2 |
Initial commit
Diffstat (limited to 'templates')
-rw-r--r-- | templates/logger_run.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/logger_run.erb b/templates/logger_run.erb new file mode 100644 index 0000000..3c377ca --- /dev/null +++ b/templates/logger_run.erb @@ -0,0 +1,5 @@ +#!/bin/sh +logdir=$(<<%= svbase %>/env/Service_Root)/log/<%= name %> +mkdir -p $logdir +chown <%= user %>:<%= group %> $logdir +exec chpst -u <%= user %>:<%= group %> svlogd -tt $logdir |