aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-30 01:38:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-30 01:38:50 +0000
commit553b7fe9acdf613f37fea8bfaf057d9154e3f617 (patch)
tree7f2781f7508090c889ebd15921a9023c81ffa719 /packages
parent5c4e47d1d34d46417399bc89f0b04c41dcca1a84 (diff)
downloadpfsense-packages-553b7fe9acdf613f37fea8bfaf057d9154e3f617.tar.gz
pfsense-packages-553b7fe9acdf613f37fea8bfaf057d9154e3f617.tar.bz2
pfsense-packages-553b7fe9acdf613f37fea8bfaf057d9154e3f617.zip
Use correct pid
Diffstat (limited to 'packages')
-rw-r--r--packages/squid.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index e02d75e9..f6febd73 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -81,7 +81,7 @@ EOD;
}
/* kill any running proxy alarm scripts */
- mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
/* restart proxy alarm scripts */
mwexec_bg("/usr/local/etc/rc.d/proxy_monitor.sh");
@@ -93,10 +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\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
- mwexec("ps awux | grep \"squid\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
- mwexec("ps awux | grep \"dnsserver\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
- mwexec("ps awux | grep \"unlinkd\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
+ mwexec("ps awux | grep \"squid\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
+ mwexec("ps awux | grep \"dnsserver\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
+ mwexec("ps awux | grep \"unlinkd\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
filter_configure();
}
@@ -335,7 +335,7 @@ EOD;
}
/* kill any running proxy alarm scripts */
- mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
/* restart proxy alarm scripts */
mwexec_bg("/usr/local/etc/rc.d/proxy_monitor.sh");