summaryrefslogtreecommitdiffstats
path: root/etc/rc.bootup
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-16 10:48:26 -0400
committerjim-p <jimp@pfsense.org>2012-05-16 10:48:26 -0400
commit0b8e9d38d8bc8a53b4e6bb503f487dae425ca3fd (patch)
tree876c344332e9ed7c0f970e41f44aafeae455f14c /etc/rc.bootup
parent11e069064b417cacbd56f7f557b131af3c10fb86 (diff)
downloadpfsense-0b8e9d38d8bc8a53b4e6bb503f487dae425ca3fd.zip
pfsense-0b8e9d38d8bc8a53b4e6bb503f487dae425ca3fd.tar.gz
On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever.
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-xetc/rc.bootup11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index baf39da..721cea6 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -305,6 +305,12 @@ system_routing_configure();
/* enable routing */
system_routing_enable();
+/* Do an initial time sync */
+echo "Starting NTP time client...";
+/* At bootup this will just write the config, ntpd will launch from ntpdate_sync_once.sh */
+system_ntp_configure(false);
+mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
+
/* start load balancer daemon */
relayd_configure();
@@ -329,11 +335,6 @@ send_event("service reload dyndnsall");
/* Run a filter configure now that most all services have started */
filter_configure_sync();
-/* start the NTP client */
-echo "Starting OpenNTP time client...";
-system_ntp_configure();
-echo "done.\n";
-
/* setup pppoe and pptp */
vpn_setup();
OpenPOWER on IntegriCloud