fix for bug 3524402: run chkconfig dhcpd on in xcatconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13195 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
71add678c3
commit
24a20072ff
@ -1443,7 +1443,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);
|
||||
|
@ -396,6 +396,9 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user