add restrict 127.0.0.1 and fix missing server attribute

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-05-15 18:24:47 +00:00
parent 1c24958cab
commit 77bf35aff6

View File

@ -119,9 +119,11 @@ sub setup_NTPsn
open(CFGFILE, ">$ntpcfg")
or xCAT::MsgUtils->message('SE',
"Cannot open $configfile for NTP update. \n");
print CFGFILE "server ";
print CFGFILE $master;
print CFGFILE "\n";
print CFGFILE "driftfile /var/lib/ntp/drift\n";
print CFGFILE "restrict 127.0.0.1\n";
close CFGFILE;
$rc = &start_NTP(); # restart ntp
@ -165,6 +167,7 @@ sub setup_NTPmn
print CFGFILE "\n";
}
print CFGFILE "driftfile /var/lib/ntp/drift\n";
print CFGFILE "restrict 127.0.0.1\n";
close CFGFILE;
$rc = &start_NTP(); # restart ntp