From 6528c2b779cb68bfdd2276796544d184572c8f7b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 26 Mar 2006 03:43:58 +0000 Subject: [PATCH] We no longer run fast cgi on 64 meg machines, dont worry about shutting down. --- etc/inc/pfsense-utils.inc | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 02b9f465a6..917742d1c8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1355,21 +1355,6 @@ function reload_interfaces_sync() { touch("{$g['tmp_path']}/reloading_all"); - $memory = get_memory(); - $avail = $memory[0]; - /* we have way too little memory. shutdown webConfigurator temporarily */ - if($avail > 0 and $avail < 66) { - log_error("Not enough ram for reload. Temporarily unloading webConfigurator."); - $shutdown_webgui_needed = true; - config_lock(); - /* kill any running lighttpd */ - killbypid("{$g['varrun_path']}/lighty-webConfigurator.pid"); - sleep(2); - /* we really need you to exit, lighttpd */ - system("killall -9 lighttpd"); - config_unlock(); - } - if($debug) log_error("reload_interfaces_sync() is starting."); @@ -1608,21 +1593,6 @@ function reload_all_sync() { touch("{$g['tmp_path']}/reloading_all"); $shutdown_webgui_needed = false; - - $memory = get_memory(); - $avail = $memory[0]; - /* we have way too little memory. shutdown webConfigurator temporarily */ - if($avail > 0 and $avail < 66) { - log_error("Not enough ram for reload. Temporarily unloading webConfigurator."); - $shutdown_webgui_needed = true; - config_lock(); - /* kill any running lighttpd */ - killbypid("{$g['varrun_path']}/lighty-webConfigurator.pid"); - sleep(2); - /* we really need you to exit, lighttpd */ - system("killall -9 lighttpd"); - config_unlock(); - } if(file_exists("{$g['tmp_path']}/config.cache")) unlink("{$g['tmp_path']}/config.cache");