From fca5d9129941b1e80b0c95aede659fcfe8d83207 Mon Sep 17 00:00:00 2001 From: Don Penney Date: Thu, 7 Feb 2019 11:06:53 -0500 Subject: [PATCH] Add drbd.service as a dependency to sm.service During initial controller configuration, the puppet manifest starts the DRBD service in order to perform necessary config steps before SM is launched. During shutdown, systemd tries to stop the DRBD service ahead of SM, but because it is still in use, there are a number of DRBD state change failures reported on the console. This update adds After=drbd.service to the sm.service config file to ensure SM is shutdown first, avoiding these failures. Change-Id: I0af0bba59f722d268bd6a5bc3f68e8defae9d191 Story: 2004520 Task: 29397 Signed-off-by: Don Penney --- service-mgmt/sm-1.0.0/scripts/sm.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-mgmt/sm-1.0.0/scripts/sm.service b/service-mgmt/sm-1.0.0/scripts/sm.service index 18be2c06..94513de5 100644 --- a/service-mgmt/sm-1.0.0/scripts/sm.service +++ b/service-mgmt/sm-1.0.0/scripts/sm.service @@ -1,6 +1,6 @@ [Unit] Description=Service Management Unit -After=network-online.target syslog-ng.service config.service sm-watchdog.service systemd-udev-settle.service +After=network-online.target syslog-ng.service config.service sm-watchdog.service systemd-udev-settle.service drbd.service Before=sm-shutdown.service sm-api.service pmon.service [Service]