From 9e71b35a4308558b1b871d8083780b8f0d3a7687 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 22 Jul 2014 20:34:23 -0700 Subject: [PATCH] fix defect #4229 xcatd will restart when add a kit or remove a kit that has a plugin --- xCAT-server/lib/xcat/plugins/kit.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index aec853777..85ea8122b 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -1411,7 +1411,8 @@ sub addkit if ( $hasplugin ) { # Issue xcatd reload to load the new plugins - system("/etc/init.d/xcatd restart"); + #system("/etc/init.d/xcatd restart"); + system("XCATRELOAD=yes xcatd -p /var/run/xcatd.pid"); } } } @@ -1731,7 +1732,8 @@ sub rmkit if ( $hasplugin ) { # Issue xcatd reload to load the new plugins - system("/etc/init.d/xcatd restart"); + #system("/etc/init.d/xcatd restart"); + system("XCATRELOAD=yes xcatd -p /var/run/xcatd.pid"); } }