From e03ef9b56435707c6e72e82bec21e307f21b974d Mon Sep 17 00:00:00 2001 From: Brett Meehan Date: Tue, 29 Dec 2020 13:49:12 +1100 Subject: [PATCH] ITPLAT-387 ensure service unit file defaults write to catalina.out --- roles/product_startup/templates/product.service.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/product_startup/templates/product.service.j2 b/roles/product_startup/templates/product.service.j2 index a99636a..2d1235d 100644 --- a/roles/product_startup/templates/product.service.j2 +++ b/roles/product_startup/templates/product.service.j2 @@ -5,12 +5,14 @@ After=network-online.target [Service] User={{ atl_product_user }} Group={{ atl_product_user }} +StandardOutput=journal+console +StandardError=journal+console {% for p in atl_startup_systemd_params -%} {{ p }} {% endfor %} -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 %} >{{ atl_product_installation_current }}/logs/catalina.out 2>{{ atl_product_installation_current }}/logs/catalina.err Restart=on-failure