Revision 1af4f4e0
Added by Ermal LUÇI over 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
1197 | 1197 |
case "slaac": |
1198 | 1198 |
case "dhcp6": |
1199 | 1199 |
$pidv6 = find_dhcp6c_process($realif); |
1200 |
if($pidv6) |
|
1201 |
posix_kill($pidv6, SIGTERM); |
|
1202 |
$pidv6 = find_rtsold_process($realif) |
|
1200 | 1203 |
if($pidv6) |
1201 | 1204 |
posix_kill($pidv6, SIGTERM); |
1202 | 1205 |
sleep(3); |
... | ... | |
2688 | 2691 |
return intval($pid); |
2689 | 2692 |
} |
2690 | 2693 |
|
2694 |
function find_rtsold_process($interface) { |
|
2695 |
global $g; |
|
2696 |
|
|
2697 |
if ($interface) |
|
2698 |
if (isvalidpid("{$g['varrun_path']}/rtsold_{$interface}.pid")) |
|
2699 |
$pid = trim(file_get_contents("{$g['varrun_path']}/rtsold_{$interface}.pid"), " \n"); |
|
2700 |
else |
|
2701 |
return(false); |
|
2702 |
|
|
2703 |
return intval($pid); |
|
2704 |
} |
|
2705 |
|
|
2691 | 2706 |
function find_dhcp6c_process($interface) { |
2692 | 2707 |
global $g; |
2693 | 2708 |
|
Also available in: Unified diff
Bring down even rtsold process