summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-25 23:42:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-25 23:42:30 +0000
commite0bcd34e8341b3a575d730f0c23aded6c913d2ad (patch)
treec724c8e91713e27bc6a8a70ea58af1f46dd9d4ed /etc
parent3d72f9f9319592d6ea967a4f7e81a9c81c049b2d (diff)
downloadpfsense-e0bcd34e8341b3a575d730f0c23aded6c913d2ad.zip
pfsense-e0bcd34e8341b3a575d730f0c23aded6c913d2ad.tar.gz
Kill lighty under low memory situations.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 9e3129f..02b9f46 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1364,6 +1364,9 @@ function reload_interfaces_sync() {
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();
}
@@ -1615,6 +1618,9 @@ function reload_all_sync() {
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();
}
OpenPOWER on IntegriCloud