summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-13 20:31:03 +0000
committerErmal <eri@pfsense.org>2010-04-13 20:31:03 +0000
commit85b2f4249870024af2a4e5e972238f72332e48b6 (patch)
tree9260a53bf061c01b624aaf91e63b13bb78cc9c26 /etc
parent24ed5c3ba4f7d43f311ce5d4cb87829eac1fbf97 (diff)
downloadpfsense-85b2f4249870024af2a4e5e972238f72332e48b6.zip
pfsense-85b2f4249870024af2a4e5e972238f72332e48b6.tar.gz
Improve startup time by delaying dyndns synching.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.bootup6
-rwxr-xr-xetc/rc.newwanip2
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 8a93685..b96dfa4 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -270,9 +270,6 @@ echo "done.\n";
/* Launch on bootup and keep trying to sync. Exit once time/date has been sync'd. */
mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
-/* start dyndns service */
-services_dyndns_configure();
-
/* static IP address? -> attempt DNS update */
if (is_ipaddr($config['interfaces']['wan']['ipaddr']))
services_dnsupdate_process();
@@ -280,6 +277,9 @@ if (is_ipaddr($config['interfaces']['wan']['ipaddr']))
/* start dnsmasq service */
services_dnsmasq_configure();
+/* start dyndns service */
+@touch("{$g['tmp_path']}/update_dyndns");
+
/* start DHCP relay */
services_dhcrelay_configure();
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 49d4a76..86e3f31 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -77,7 +77,7 @@ services_dnsupdate_process($interface);
file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip);
/* signal dyndns update */
-file_put_contents("/tmp/update_dyndns", $interface);
+file_put_contents("{$g['tmp_path']}/update_dyndns", $interface);
/* reconfigure IPsec tunnels */
vpn_ipsec_force_reload();
OpenPOWER on IntegriCloud