Commit 27abfa4c authored by mellor's avatar mellor
Browse files

defect 4229 replace xcatd reload with call to new rescanplugins in kit add and...

defect 4229 replace xcatd reload with call to new rescanplugins in kit add and kit remove for xCAT 2.9 only
parent cea7f53e
......@@ -12,6 +12,7 @@ BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
use lib "$::XCATROOT/lib/perl";
use xCAT::Table;
use xCAT::Utils;
......@@ -1410,9 +1411,10 @@ sub addkit
xCAT::MsgUtils->message( "I", \%rsp, $callback );
if ( $hasplugin ) {
# Issue xcatd reload to load the new plugins
#system("/etc/init.d/xcatd restart");
system("XCATRELOAD=yes xcatd -p /var/run/xcatd.pid");
# Issue rescanplugins to have xcatd load the new plugins
xCAT::Utils->runxcmd( { command => ['rescanplugins'],},
$request_command, 0,1);
}
}
}
......@@ -1731,9 +1733,9 @@ sub rmkit
xCAT::MsgUtils->message( "I", \%rsp, $callback );
if ( $hasplugin ) {
# Issue xcatd reload to load the new plugins
#system("/etc/init.d/xcatd restart");
system("XCATRELOAD=yes xcatd -p /var/run/xcatd.pid");
# Issue rescanplugins to have xcatd load the new plugins
xCAT::Utils->runxcmd( { command => ['rescanplugins'],},
$request_command, 0,1);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment