fix for bug 3524402: run chkconfig dhcpd on in xcatconfig

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13196 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2012-06-29 03:17:04 +00:00
parent 6a52d2327b
commit e61f51388f
2 changed files with 8 additions and 1 deletions

View File

@ -1457,7 +1457,10 @@ sub process_request
else
{
system("/etc/init.d/dhcpd restart");
system("chkconfig dhcpd on");
# should not chkconfig dhcpd on every makedhcp invoation
# it is not appropriate and will cause problem for HAMN
# do it in xcatconfig instead
#system("chkconfig dhcpd on");
}
}
flock($dhcplockfd,LOCK_UN);

View File

@ -381,6 +381,10 @@ if ($::INITIALINSTALL || $::FORCE)
&makenetworks;
&setuphttp;
# chkconfig dhcpd on
system("chkconfig dhcpd on");
my $linux_note =
"xCAT is now running, it is recommended to tabedit networks \nand set a dynamic ip address range on any networks where nodes \nare to be discovered. Then, run makedhcp -n to create a new dhcpd \nconfiguration file, and \/etc\/init.d\/dhcpd restart. Either examine sample \nconfiguration templates, or write your own, or specify a value per \nnode with nodeadd or tabedit.";
xCAT::MsgUtils->message('I', $linux_note);