summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-11-29 16:56:18 -0500
committerjim-p <jimp@pfsense.org>2012-11-29 16:56:18 -0500
commit17cf3d1783a43de1037744f981f2503acd50e047 (patch)
tree1c12906dae43d325a4f8e14439aa61c75b5bafc3
parent671914b223fd8bb27f4f0cd1dd03071fc6b0ffe5 (diff)
downloadpfsense-17cf3d1783a43de1037744f981f2503acd50e047.zip
pfsense-17cf3d1783a43de1037744f981f2503acd50e047.tar.gz
Be a little more verbose when starting the NTP daemon
-rwxr-xr-xusr/local/sbin/ntpdate_sync_once.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh
index cd5815d..e899672 100755
--- a/usr/local/sbin/ntpdate_sync_once.sh
+++ b/usr/local/sbin/ntpdate_sync_once.sh
@@ -23,8 +23,13 @@ done
if [ "$NOTSYNCED" = "true" ]; then
echo "Giving up on time sync after ${MAX_ATTEMPTS} attempts." | /usr/bin/logger -t ntp;
+else
+ echo "Successfully synced time after ${ATTEMPT} attempts." | /usr/bin/logger -t ntp;
fi
if [ -f /var/etc/ntpd.conf ]; then
+ echo "Starting NTP Daemon." | /usr/bin/logger -t ntp;
/usr/local/bin/ntpd -g -c /var/etc/ntpd.conf
+else
+ echo "NTP configuration file missing, not starting daemon." | /usr/bin/logger -t ntp;
fi \ No newline at end of file
OpenPOWER on IntegriCloud