Send ntpdate output to syslog

This commit is contained in:
jim-p 2011-04-08 11:20:25 -04:00
parent fbfd675a53
commit 2db351a746

View File

@ -4,7 +4,7 @@ NOTSYNCED="true"
SERVER=`cat /cf/conf/config.xml | grep timeservers | cut -d">" -f2 | cut -d"<" -f1`
while [ "$NOTSYNCED" = "true" ]; do
ntpdate $SERVER
ntpdate -s $SERVER
if [ "$?" = "0" ]; then
NOTSYNCED="false"
fi