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
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ deploy_service_prestop_script: ""
# Shell script to run if deploy_service_has_poststop_script is true
deploy_service_poststop_script: ""

# If the `-b wibble` argument shall be passed to the start command (see http://upstart.ubuntu.com/cookbook/#changing-user)
deploy_service_do_wibble: False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes now the default behaviour, is it intended?


# If true, service will start at boot time
deploy_start_at_boot_time: False

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 }}{% if deploy_service_do_wibble == True %} -b wibble{% endif %}

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