diff --git a/utils/node_admin.in b/utils/node_admin.in index c22b329f666401da7dae45268be705f7458d8330..5b794cc888990edc32993a015b8c50fb157b0fa5 100755 --- a/utils/node_admin.in +++ b/utils/node_admin.in @@ -182,12 +182,22 @@ DBQueryFatal("update nodes set startupcmd='', startstatus='none' ". # if ($reboot) { if ($waitmode) { + $StateWait::debug = 0; + # # Initialize the statewait library. # - my @states = (TBDB_NODESTATE_MFSSETUP(), TBDB_NODESTATE_ISUP()); + my @states = (); my @finished = (); my @failed = (); + + # + # Only wait for MFSSETUP when going into the MFS. When coming out + # of MFS, just wait for generic ISUP. + # + push(@states, TBDB_NODESTATE_MFSSETUP()) + if ($onoff eq "on"); + push(@states, TBDB_NODESTATE_ISUP()); if (initStateWait(\@states, @nodes)) { die("*** $0:\n".