2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-24 12:10:25 +00:00

Merge pull request #1510 from immarvin/onxcatconfig

fix issue  Updating xCAT on OS that uses systemctl has a warning message #1509 ; run systemctl daemon-reload on xcat upgrade
This commit is contained in:
Xiaopeng Wang
2016-07-13 14:05:55 +08:00
committed by GitHub

View File

@@ -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");
}