From 368500d531be0cfc8b0e4bb5bb555391aa4edc90 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 11 Jul 2016 01:29:11 -0400 Subject: [PATCH] fix issue Updating xCAT on OS that uses systemctl has a warning message #1509 ; run systemctl daemon-reload on xcat upgrade --- xCAT-server/sbin/xcatconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 1dc1e8a45..8d9d84b37 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -448,6 +448,12 @@ if ($::INITIALINSTALL || $::FORCE || $::UPDATEINSTALL || $::genCredentials) } else { + #since the xcatd service unit file is updated on xcat upgrade + #"systemctl daemon-reload" need to be run to update the service unit + if ($::UPDATEINSTALL){ + $xcmd="type systemctl >/dev/null 2>&1 && systemctl daemon-reload"; + xCAT::Utils->runcmd("$xcmd", 0); + } #$xcmd = "/etc/init.d/xcatd restart"; xCAT::Utils->restartservice("xcatd"); }