From 7fed35c84fd98aa5c17ccaf14ac788cd3538abc6 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 25 Mar 2013 18:46:58 +0000 Subject: Give the process time to exit before running a new one --- etc/inc/interfaces.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc') 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 -- cgit v1.1