Project

General

Profile

« Previous | Next » 

Revision c714a1af

Added by Ermal LUÇI about 13 years ago

Fixes #2364. On busy pppoe servers it might take some time before mpd exits. Check for this before trying to restart

View differences:

etc/inc/vpn.inc
1394 1394
				chmod("{$g['varetc_path']}/pppoe{$pppoecfg['pppoeid']}-vpn/mpd.secret", 0600);
1395 1395
			}
1396 1396

  
1397
			/* Check if previous instance is still up */
1398
			while (file_exists("{$g['varrun_path']}/pppoe{$pppoecfg['pppoeid']}-vpn.pid") && isvalidpid("{$g['varrun_path']}/pppoe{$pppoecfg['pppoeid']}-vpn.pid"))
1399
				killbypid("{$g['varrun_path']}/pppoe{$pppoecfg['pppoeid']}-vpn.pid");
1400

  
1397 1401
			/* Get support for netgraph(4) from the nic */
1398 1402
			pfSense_ngctl_attach(".", $pppoe_interface);
1399 1403
			/* fire up mpd */

Also available in: Unified diff