15 lines
398 B
Plaintext
15 lines
398 B
Plaintext
chkconfig ntpd on
|
|
|
|
cat << EOF > /etc/ntp.conf
|
|
$SNIPPET('ntp.conf')
|
|
EOF
|
|
|
|
#if $getVar('ntp_server', '') != ""
|
|
echo "old date is: \`date\`" 2>&1 > /tmp/ntp.log
|
|
echo "path: \$PATH" 2>&1 >> /tmp/ntp.log
|
|
/sbin/service ntpd stop 2>&1 >> /tmp/ntp.log
|
|
/usr/sbin/ntpdate $ntp_server 2>&1 >> /tmp/ntp.log
|
|
/sbin/service ntpd start 2>&1 >> /tmp/ntp.log
|
|
echo "new date is: \`date\`" 2>&1 >> /tmp/ntp.log
|
|
#end if
|