From 2ac2738985d08dc2ca8a461c512d6d16795f9ea4 Mon Sep 17 00:00:00 2001 From: Brett Meehan Date: Wed, 3 Mar 2021 17:44:59 +1100 Subject: [PATCH] ITPLAT-518 add templated whitespace after endif to ensure newline is placed --- roles/product_startup/templates/product.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/product_startup/templates/product.service.j2 b/roles/product_startup/templates/product.service.j2 index 4e25de7..83181ad 100644 --- a/roles/product_startup/templates/product.service.j2 +++ b/roles/product_startup/templates/product.service.j2 @@ -18,9 +18,9 @@ StandardError=journal+console {# Bitbucket DC sets up its service start/stop logging in a different way to all our other DC offerings and so we exclude it from having the catalina.out redirect and foreground startup #} {% if (atl_product_family == "stash") %} PIDFile={{ atl_product_home }}/log/bitbucket.pid -ExecStart={{ atl_startup_exec_path }}{% for c in atl_startup_exec_options %} {{ c }}{% endfor %} +ExecStart={{ atl_startup_exec_path }}{% for c in atl_startup_exec_options %} {{ c }}{% endfor %}{{}} ExecStop={{ atl_stop_exec_path }} -{% else -%} +{% else %} ExecStart={{ atl_startup_exec_path }}{% for c in atl_startup_exec_options %} {{ c }}{% endfor %} >{{ atl_product_installation_current }}/logs/catalina.out 2>&1 {% endif %}