diff options
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/system.inc | 7 | ||||
-rw-r--r-- | src/etc/pfSense.obsoletedfiles | 1 | ||||
-rwxr-xr-x | src/etc/rc.bootup | 6 |
3 files changed, 4 insertions, 10 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index c44dfab..dc8f902 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -1572,7 +1572,7 @@ function system_ntp_setup_pps($serialport) { } -function system_ntp_configure($start_ntpd=true) { +function system_ntp_configure() { global $config, $g; $driftfile = "/var/db/ntpd.drift"; @@ -1868,11 +1868,6 @@ function system_ntp_configure($start_ntpd=true) { return; } - /* At bootup we just want to write out the config. */ - if (!$start_ntpd) { - return; - } - /* if ntpd is running, kill it */ while (isvalidpid("{$g['varrun_path']}/ntpd.pid")) { killbypid("{$g['varrun_path']}/ntpd.pid"); diff --git a/src/etc/pfSense.obsoletedfiles b/src/etc/pfSense.obsoletedfiles index 655ea6f..16854e5 100644 --- a/src/etc/pfSense.obsoletedfiles +++ b/src/etc/pfSense.obsoletedfiles @@ -642,6 +642,7 @@ /usr/local/sbin/mdnsd /usr/local/sbin/mini_httpd /usr/local/sbin/mpd +/usr/local/sbin/ntpdate_sync_once.sh /usr/local/sbin/olsrd /usr/local/sbin/pbi /usr/local/sbin/pbi-crashhandler diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup index 2a32a07..5c8b613 100755 --- a/src/etc/rc.bootup +++ b/src/etc/rc.bootup @@ -308,11 +308,9 @@ services_dnsmasq_configure(); /* start unbound service */ services_unbound_configure(); -/* Do an initial time sync */ +/* Enable ntpd */ 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", true); +system_ntp_configure(); echo "done.\n"; /* start load balancer daemon */ |