diff options
author | Ermal <eri@pfsense.org> | 2013-03-25 18:46:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-25 18:46:58 +0000 |
commit | 7fed35c84fd98aa5c17ccaf14ac788cd3538abc6 (patch) | |
tree | 5c14ed5cf97e2c5ebb8cce2afffe841e8111393e | |
parent | 2269e286f4d4bb4b6fca59c6383f05a46ddbc464 (diff) | |
download | pfsense-7fed35c84fd98aa5c17ccaf14ac788cd3538abc6.zip pfsense-7fed35c84fd98aa5c17ccaf14ac788cd3538abc6.tar.gz |
Give the process time to exit before running a new one
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0841470..84c0794 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3553,8 +3553,10 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) { mwexec("/sbin/ifconfig {$wanif} inet6 accept_rtadv"); /* fire up rtsold for IPv6 RAs first, this backgrounds immediately. It will call dhcp6c */ - if (isvalidpid("{$g['varrun_path']}/rtsold_{$wanif}.pid")) + if (isvalidpid("{$g['varrun_path']}/rtsold_{$wanif}.pid")) { killbypid("{$g['varrun_path']}/rtsold_{$wanif}.pid"); + sleep(2); + } mwexec("/usr/sbin/rtsold -1 -p {$g['varrun_path']}/rtsold_{$wanif}.pid -O {$g['varetc_path']}/rtsold_{$wanif}_script.sh {$wanif}"); /* NOTE: will be called from rtsold invoked script |