summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarkus Strauss <Markus@ITstrauss.eu>2011-10-27 20:34:29 -0400
committerMarkus Strauss <Markus@ITstrauss.eu>2011-10-27 20:34:29 -0400
commit8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e (patch)
tree3926de63459638b055852d0b97eb7540ddac426a /templates
downloadpuppet-runit-8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e.tar.gz
puppet-runit-8bd3fba55a717bae459ead2b03bc7ccdd9f2a82e.tar.bz2
Initial commit
Diffstat (limited to 'templates')
-rw-r--r--templates/logger_run.erb5
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