diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-30 01:33:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-30 01:33:42 +0000 |
commit | 800e5303a8a7fc014bcfa61733b8aff48b5f8014 (patch) | |
tree | c0209a8bf23719cef98db1f84abf0615262788a7 | |
parent | 91ee8d699eff4dc2568c83e5ced9e091093f5c44 (diff) | |
download | pfsense-packages-800e5303a8a7fc014bcfa61733b8aff48b5f8014.tar.gz pfsense-packages-800e5303a8a7fc014bcfa61733b8aff48b5f8014.tar.bz2 pfsense-packages-800e5303a8a7fc014bcfa61733b8aff48b5f8014.zip |
Don't forget grep -v
-rw-r--r-- | packages/squid.inc | 4 |
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"); |