mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #757. Use correct pidfile.
This commit is contained in:
parent
a3ccdf6e11
commit
a8d6ac1aec
@ -917,8 +917,8 @@ function interface_bring_down($interface = "wan", $destroy = false) {
|
||||
if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
|
||||
foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
|
||||
if ($realif == $ppp['if']) {
|
||||
if (file_exists("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid")) {
|
||||
killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid");
|
||||
if (file_exists("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid")) {
|
||||
killbypid("{$g['varrun_path']}/{$ppp['type']}_{$interface}.pid");
|
||||
sleep(5);
|
||||
}
|
||||
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
|
||||
@ -3601,4 +3601,4 @@ function get_vip_descr($ipaddress) {
|
||||
return "";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user