aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid.inc')
-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");