From f44e1bd1bed12adc4f8cd0e3d07a35adb5d6d9ea Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 30 Jul 2006 01:28:23 +0000 Subject: Kill proxy monitor on package deinstallation --- packages/squid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/squid.inc') diff --git a/packages/squid.inc b/packages/squid.inc index 642ff987..7ef3e9f4 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -92,7 +92,8 @@ EOD; function squid_deinstall_command() { mwexec('rm -rf ' . CACHEDIR); - mwexec('rm -rf /usr/local/etc/rc.d/proxy_monitor.sh'); + mwexec('rm -f /usr/local/etc/rc.d/proxy_monitor.sh'); + mwexec("ps awux | grep \"proxy_monitor\" | awk '{ print $6 }' | xargs kill"); filter_configure(); } -- cgit v1.2.3