From b9bad43f8f70f128e8458d83e7d0178d1cc9aa05 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 21 Jul 2021 19:18:02 +0200 Subject: [PATCH] TT#131370 Check whether mariadb@2.service is running and enabled The preset for the mariadb@2.service instance was not taken into account due to the format used, even though monit was taking care of starting the service. Add a check for the service to be enabled and running to avoid this happening in the future. Change-Id: Iafbc684624c58c6b2c4e453b7e1ac4ba52ab2097 --- templates/500_init-daemons-dabian.yaml.tt2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/500_init-daemons-dabian.yaml.tt2 b/templates/500_init-daemons-dabian.yaml.tt2 index 3281c79..f02ce41 100644 --- a/templates/500_init-daemons-dabian.yaml.tt2 +++ b/templates/500_init-daemons-dabian.yaml.tt2 @@ -47,6 +47,10 @@ service: enabled: true running: true + mariadb@2.service: + enabled: [% general.ngcp_type == 'carrier' && (is_proxy || is_li_dist) ? 'true' : 'false' %] + running: [% general.ngcp_type == 'carrier' && (is_proxy || is_li_dist) ? 'true' : 'false' %] + {{if lt .Env.DEBIAN_RELEASE "11"}} mysql.service: enabled: true