aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-30 01:33:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-30 01:33:42 +0000
commit800e5303a8a7fc014bcfa61733b8aff48b5f8014 (patch)
treec0209a8bf23719cef98db1f84abf0615262788a7 /packages
parent91ee8d699eff4dc2568c83e5ced9e091093f5c44 (diff)
downloadpfsense-packages-800e5303a8a7fc014bcfa61733b8aff48b5f8014.tar.gz
pfsense-packages-800e5303a8a7fc014bcfa61733b8aff48b5f8014.tar.bz2
pfsense-packages-800e5303a8a7fc014bcfa61733b8aff48b5f8014.zip
Don't forget grep -v
Diffstat (limited to 'packages')
-rw-r--r--packages/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index 4ed7a286..66e693c9 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\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
/* restart proxy alarm scripts */
mwexec("/usr/local/etc/rc.d/proxy_monitor.sh");
@@ -335,7 +335,7 @@ EOD;
}
/* kill any running proxy alarm scripts */
- mwexec("ps awux | grep \"proxy_monitor\" | awk '{ print $6 }' | xargs kill");
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | awk '{ print $6 }' | xargs kill");
/* restart proxy alarm scripts */
mwexec("/usr/local/etc/rc.d/proxy_monitor.sh");