summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-08 15:02:57 -0500
committerjim-p <jimp@pfsense.org>2013-02-08 15:02:57 -0500
commit053876753e6577507c8258f1f6019d2a90da63a8 (patch)
tree920b93c3d5e66e7712472f173f319a05a7ff19d4 /etc
parent89ad93905228adf3c0e7a7960efc43cc3f0d5286 (diff)
downloadpfsense-053876753e6577507c8258f1f6019d2a90da63a8.zip
pfsense-053876753e6577507c8258f1f6019d2a90da63a8.tar.gz
Restart ntpd a little differently, seems to stabilize it when restarted from rc.newwanip
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.bootup2
-rwxr-xr-xetc/rc.newwanip2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 84f8246..c6176a1 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -282,7 +282,7 @@ system_routing_enable();
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("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh");
+shell_exec("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh");
/* start load balancer daemon */
relayd_configure();
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 0438088..fe17ad0 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -51,7 +51,7 @@ function restart_packages() {
/* restart packages */
system_ntp_configure(false);
- mwexec_bg("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh");
+ shell_exec("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh");
log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages.");
send_event("service reload packages");
}
OpenPOWER on IntegriCloud