Adjusted the command line
This commit is contained in:
parent
fb485ed81e
commit
75cdf3be4b
@ -44,9 +44,8 @@ do_start()
|
||||
<% 1.upto(concurrency[process.name]) do |num| %>
|
||||
# START CONCURRENT: <%= num %>
|
||||
# Start: <%= app %>.<%= process.name %>.<%= num %>
|
||||
exec su - <%= user %> -c 'cd <%= engine.directory %>; export PORT=<%= engine.port_for(process, num, self.port) %>;<% engine.environment.each_pair do |var,env| %> export <%= var.upcase %>=<%= env %>; <% end %> <%= process.command %> >> <%= log_root %>/<%=process.name%>-<%=num%>.log 2>&1 &'
|
||||
# Create $PIDDIR/<%= process.name %>.<%= num %>.pid
|
||||
echo $! > $PIDDIR/<%= process.name %>.<%= num %>.pid
|
||||
exec su - <%= user %> -c 'cd <%= engine.directory %>; export PORT=<%= engine.port_for(process, num, self.port) %>;<% engine.environment.each_pair do |var,env| %> export <%= var.upcase %>=<%= env %>; <% end %> <%= process.command %> >> <%= log_root %>/<%=process.name%>-<%=num%>.log 2>&1 & echo $!' > $PIDDIR/<%= process.name %>.<%= num %>.pid
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
@ -44,18 +44,16 @@ do_start()
|
||||
|
||||
# START CONCURRENT: 1
|
||||
# Start: app.alpha.1
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5000; ./alpha >> /var/log/app/alpha-1.log 2>&1 &'
|
||||
# Create $PIDDIR/alpha.1.pid
|
||||
echo $! > $PIDDIR/alpha.1.pid
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5000; ./alpha >> /var/log/app/alpha-1.log 2>&1 & echo $!' > $PIDDIR/alpha.1.pid
|
||||
|
||||
|
||||
# START PROCESS: bravo
|
||||
|
||||
# START CONCURRENT: 1
|
||||
# Start: app.bravo.1
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5100; ./bravo >> /var/log/app/bravo-1.log 2>&1 &'
|
||||
# Create $PIDDIR/bravo.1.pid
|
||||
echo $! > $PIDDIR/bravo.1.pid
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5100; ./bravo >> /var/log/app/bravo-1.log 2>&1 & echo $!' > $PIDDIR/bravo.1.pid
|
||||
|
||||
|
||||
|
||||
|
@ -44,16 +44,14 @@ do_start()
|
||||
|
||||
# START CONCURRENT: 1
|
||||
# Start: app.alpha.1
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5000; ./alpha >> /var/log/app/alpha-1.log 2>&1 &'
|
||||
# Create $PIDDIR/alpha.1.pid
|
||||
echo $! > $PIDDIR/alpha.1.pid
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5000; ./alpha >> /var/log/app/alpha-1.log 2>&1 & echo $!' > $PIDDIR/alpha.1.pid
|
||||
|
||||
|
||||
# START CONCURRENT: 2
|
||||
# Start: app.alpha.2
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5001; ./alpha >> /var/log/app/alpha-2.log 2>&1 &'
|
||||
# Create $PIDDIR/alpha.2.pid
|
||||
echo $! > $PIDDIR/alpha.2.pid
|
||||
exec su - app -c 'cd /tmp/app; export PORT=5001; ./alpha >> /var/log/app/alpha-2.log 2>&1 & echo $!' > $PIDDIR/alpha.2.pid
|
||||
|
||||
|
||||
# START PROCESS: bravo
|
||||
|
Loading…
Reference in New Issue
Block a user