aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/openbgpd/openbgpd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index d88edade..3c67262b 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -234,7 +234,7 @@ EOF;
}
function is_openbgpd_running() {
- $status = `ps awux | grep bgpd | grep "parent" | wc -l | awk '{ print \$1 }'`;
+ $status = `ps awux | grep bgpd | grep "parent" | grep -v grep | wc -l | awk '{ print \$1 }'`;
if(intval($status) > 0)
return true;
else