aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-30 01:30:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-30 01:30:23 +0000
commit992e4b7b88c4cdcc5874afdf538133f754f74c5b (patch)
treea352c07aa3a3740c3c894e740923b247f2669a80 /packages
parentf44e1bd1bed12adc4f8cd0e3d07a35adb5d6d9ea (diff)
downloadpfsense-packages-992e4b7b88c4cdcc5874afdf538133f754f74c5b.tar.gz
pfsense-packages-992e4b7b88c4cdcc5874afdf538133f754f74c5b.tar.bz2
pfsense-packages-992e4b7b88c4cdcc5874afdf538133f754f74c5b.zip
Kill off all known squid processes if running on deinstallation
Diffstat (limited to 'packages')
-rw-r--r--packages/squid.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index 7ef3e9f4..c3b3f63b 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -93,7 +93,10 @@ EOD;
function squid_deinstall_command() {
mwexec('rm -rf ' . CACHEDIR);
mwexec('rm -f /usr/local/etc/rc.d/proxy_monitor.sh');
- mwexec("ps awux | grep \"proxy_monitor\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"proxy_monitor\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"squid\" | grep -v \"squid\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"dnsserver\" | grep -v \"dnsserver\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"unlinkd\" | grep -v \"unlinkd\" | awk '{ print $6 }' | xargs kill");
filter_configure();
}