summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-09 05:41:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-09 05:41:16 +0000
commitd271761b8c95ba945491954fded4a9981714ecc2 (patch)
tree64cf153e9e825ab7a003ad164d5a41173bde4504 /usr/local/sbin
parent866d2a177ef7161f04e335804376178256228c77 (diff)
downloadpfsense-d271761b8c95ba945491954fded4a9981714ecc2.zip
pfsense-d271761b8c95ba945491954fded4a9981714ecc2.tar.gz
Kill old ntpd process if it is around
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/ntpdate_sync_once.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh
index deea394..dbcf170 100755
--- a/usr/local/sbin/ntpdate_sync_once.sh
+++ b/usr/local/sbin/ntpdate_sync_once.sh
@@ -10,4 +10,6 @@ while [ "$NOTSYNCED" = "true" ]; do
done
# Launch -- we have net.
+killall ntpd 2>/dev/null
+sleep 1
/usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf
OpenPOWER on IntegriCloud