diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-25 23:42:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-25 23:42:30 +0000 |
commit | e0bcd34e8341b3a575d730f0c23aded6c913d2ad (patch) | |
tree | c724c8e91713e27bc6a8a70ea58af1f46dd9d4ed /etc | |
parent | 3d72f9f9319592d6ea967a4f7e81a9c81c049b2d (diff) | |
download | pfsense-e0bcd34e8341b3a575d730f0c23aded6c913d2ad.zip pfsense-e0bcd34e8341b3a575d730f0c23aded6c913d2ad.tar.gz |
Kill lighty under low memory situations.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
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(); } |