Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/service/systemd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ After=multi-user.target
Type=simple
Restart=on-failure
{% if deploy_log_stdout == True or deploy_log_stderr == True %}
ExecStart=/bin/sh -c "{{ deploy_dir_app }}/{{ deploy_service_start_command }} {% if deploy_log_stdout == True %}1> {{ deploy_log_stdout_path }}{% endif %} {% if deploy_log_stderr == True %}2>{{ deploy_log_stderr_path }}{% endif %}"
ExecStart=/bin/sh -c "{{ deploy_dir_app }}/{{ deploy_service_start_command }} {% if deploy_log_stdout == True %}1>> {{ deploy_log_stdout_path }}{% endif %} {% if deploy_log_stderr == True %}2>> {{ deploy_log_stderr_path }}{% endif %}"
{% else %}
ExecStart={{ deploy_dir_app }}/{{ deploy_service_start_command }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/service/upstart.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ end script
{% endif %}

# Execute deploy_service_start_command and log stdout
exec su -s /bin/sh -c 'exec "$0" "$@" {% if deploy_log_stdout == True %}1>>{{ deploy_log_stdout_path }}{% endif %} {% if deploy_log_stderr == True %}2>>{{ deploy_log_stderr_path }}{% endif %}' {{ deploy_app_user }} -- {{ deploy_service_start_command }} -b wibble
exec su -s /bin/sh -c 'exec "$0" "$@" {% if deploy_log_stdout == True %}1>> {{ deploy_log_stdout_path }}{% endif %} {% if deploy_log_stderr == True %}2>> {{ deploy_log_stderr_path }}{% endif %}' {{ deploy_app_user }} -- {{ deploy_service_start_command }} -b wibble

{% if deploy_service_has_prestop_script == True %}
# Pre-Stop Script
Expand Down