If xcatd processes are running then stop them.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@510 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
20d9e7f8fe
commit
61203f6dd8
@ -435,10 +435,10 @@ if ( ( ! -r "$::root/.xcat/client-key.pem") || $::FORCE){
|
||||
}
|
||||
|
||||
#
|
||||
# if this is a re-config then stop the xcatd processes
|
||||
# if there are xcatd processes then stop them
|
||||
#
|
||||
if ($::FORCE) {
|
||||
my @xpids = xCAT::Utils->runcmd("ps -ef\|grep \"xcatd\"", 0);
|
||||
my @xpids = xCAT::Utils->runcmd("ps -ef\|grep \"xcatd\"", 0);
|
||||
if ($#xpids >= 1) { # will have at least "0" for the grep
|
||||
xCAT::MsgUtils->message('I', "Stopping xcatd processes....\n");
|
||||
foreach $ps (@xpids)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user