diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 03:04:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 03:04:03 +0000 |
commit | 4f46cd861d2ac72f65a53c2d695967a4adc4bf5b (patch) | |
tree | 5d8307aac7e2813f8851ccc08e684f4bd87a5368 /etc/inc/system.inc | |
parent | fbc6ad9585ab49333bbace5702a7fc67e016ec3c (diff) | |
download | pfsense-4f46cd861d2ac72f65a53c2d695967a4adc4bf5b.zip pfsense-4f46cd861d2ac72f65a53c2d695967a4adc4bf5b.tar.gz |
* Move time scripts much earlier. It will now kick off initially
from the ntp once script
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 1254e55..3753154 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1047,14 +1047,15 @@ function system_ntp_configure() { /* if openntpd is running, kill it */ while(is_process_running("ntpd")) { mwexec("/usr/bin/killall ntpd", true); - sleep(3); + sleep(1); } /* if /var/empty does not exist, create it */ if(!is_dir("/var/empty")) exec("/bin/mkdir -p /var/empty && chmod ug+rw /var/empty/."); - sleep(1); + if($g['booting']) + return; /* start opentpd, set time now and use /var/etc/ntpd.conf */ exec("/usr/local/sbin/ntpd -s -f {$g['varetc_path']}/ntpd.conf"); |