Add runit export format.

Fix #28
This commit is contained in:
Matthijs Langenberg
2011-11-08 23:50:33 +01:00
parent 615aada17e
commit 676d3ff8d1
15 changed files with 142 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
LOG=<%= log_root %>/<%= process.name %>-<%= num %>
test -d "$LOG" || mkdir -p m2750 "$LOG" && chown <%= user %> "$LOG"
exec chpst -u <%= user %> svlogd "$LOG"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
cd <%= engine.directory %>
exec chpst -u <%= user %> -e <%= process_env_directory %> <%= process.command %>