restructure init files, add optional --user flag for export

This commit is contained in:
David Dollar committed 2010-06-28 22:52:44 -04:00
1 parent 426241d461
commit 10e572de94
6 files changed
+16 -9

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
stop on stopping <%= app %>
start on starting <%= app %>-<%= process.name %>
stop on stopping <%= app %>-<%= process.name %>
respawn
chdir <%= engine.directory %>
exec <%= process.command %> >> /var/log/<%=app%>/<%=process.name%>-<%=num%>.log 2>&1
exec sudo -u <%= user %> <%= process.command %> >> /var/log/<%=app%>/<%=process.name%>-<%=num%>.log 2>&1