Project

General

Profile

« Previous | Next » 

Revision 7fed35c8

Added by Ermal LUÇI over 12 years ago

Give the process time to exit before running a new one

View differences:

etc/inc/interfaces.inc
3553 3553
	mwexec("/sbin/ifconfig {$wanif} inet6 accept_rtadv");
3554 3554

  
3555 3555
	/* fire up rtsold for IPv6 RAs first, this backgrounds immediately. It will call dhcp6c */
3556
	if (isvalidpid("{$g['varrun_path']}/rtsold_{$wanif}.pid"))
3556
	if (isvalidpid("{$g['varrun_path']}/rtsold_{$wanif}.pid")) {
3557 3557
		killbypid("{$g['varrun_path']}/rtsold_{$wanif}.pid");
3558
		sleep(2);
3559
	}
3558 3560
	mwexec("/usr/sbin/rtsold -1 -p {$g['varrun_path']}/rtsold_{$wanif}.pid -O {$g['varetc_path']}/rtsold_{$wanif}_script.sh {$wanif}");
3559 3561

  
3560 3562
	/* NOTE: will be called from rtsold invoked script 

Also available in: Unified diff