Skip to content

Commit

Permalink
Exec the command in upstart
Browse files Browse the repository at this point in the history
In order to ensure that upstart tracks the correct PID, make sure we
exec to the command requested.

Fixes nickstenning#131.
Closes nickstenning#144.
  • Loading branch information
nickstenning committed Feb 28, 2016
1 parent 41802e5 commit 25d72d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion honcho/export/templates/upstart/process.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ exec su - {{ user }} -s {{ shell }} -c 'cd {{ app_root }};
{%- for k, v in process.env.items() -%}
export {{ k }}={{ v | shellquote }};
{%- endfor -%}
{{ process.cmd }} >> {{ log }}/{{ process.name|dashrepl }}.log 2>&1'
exec {{ process.cmd }} >> {{ log }}/{{ process.name|dashrepl }}.log 2>&1'

0 comments on commit 25d72d4

Please sign in to comment.