Project

General

Profile

Bug #1534 ยป pf.diff

patch fixing start/stop issues with rc scripts - Marcin Krol, 05/27/2011 02:43 AM

View differences:

new/etc/inc/system.inc 2011-05-24 12:04:28.000000000 +0200
1341 1341
}
1342 1342

  
1343 1343
function system_reboot_cleanup() {
1344
	mwexec("/etc/rc.stop_packages");
1344 1345
	mwexec("/usr/local/bin/beep.sh stop");
1345 1346
	require_once("captiveportal.inc");
1346 1347
	captiveportal_radius_stop_all();
new/etc/rc.newwanip 2011-05-24 12:04:44.000000000 +0200
51 51
	/* restart packages */
52 52
	system_ntp_configure();
53 53
	log_error("{$g['product_name']} package system has detected an ip change $oldip ->  $curwanip ... Restarting packages.");		
54
	mwexec_bg("/etc/rc.start_packages");
54
	mwexec("/etc/rc.start_packages");
55 55
}
56 56

  
57 57
/* Interface IP address has changed */
new/etc/rc.start_packages 2011-05-24 12:06:41.000000000 +0200
38 38
require_once("pfsense-utils.inc");
39 39
require_once("service-utils.inc");
40 40

  
41
mwexec("/etc/rc.stop_packages");
42

  
41 43
log_error("Restarting/Starting all packages.");
42 44

  
43 45
$rcfiles = glob("{$rcfileprefix}*.sh");
    (1-1/1)