move to setup dhcpd last

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2999 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2009-03-26 15:01:53 +00:00
parent dfcd4b2fcb
commit 9b7532275d

View File

@ -115,17 +115,6 @@ sub handled_commands
}
$service = "dhcpserver";
if (grep(/$service/, @servicelist))
{
$rc = &setup_DHCP($nodename); # setup DHCP
if ($rc == 0)
{
xCAT::Utils->update_xCATSN($service);
}
}
$service = "ftpserver";
if (grep(/$service/, @servicelist))
@ -174,6 +163,8 @@ sub handled_commands
}
}
} # end Linux only
#
@ -201,6 +192,23 @@ sub handled_commands
}
}
#
# setup dhcp only on Linux and last
#
if (xCAT::Utils->isLinux()) {
my $service = "dhcpserver";
if (grep(/$service/, @servicelist))
{
$rc = &setup_DHCP($nodename); # setup DHCP
if ($rc == 0)
{
xCAT::Utils->update_xCATSN($service);
}
}
}
# done now in setupntp postinstall script, but may change
#$service = "ntpserver";