diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 05:41:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 05:41:16 +0000 |
commit | d271761b8c95ba945491954fded4a9981714ecc2 (patch) | |
tree | 64cf153e9e825ab7a003ad164d5a41173bde4504 /usr/local/sbin | |
parent | 866d2a177ef7161f04e335804376178256228c77 (diff) | |
download | pfsense-d271761b8c95ba945491954fded4a9981714ecc2.zip pfsense-d271761b8c95ba945491954fded4a9981714ecc2.tar.gz |
Kill old ntpd process if it is around
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-x | usr/local/sbin/ntpdate_sync_once.sh | 2 |
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 |