aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-10-04 13:52:44 +0000
committerErmal Luçi <eri@pfsense.org>2009-10-04 13:52:44 +0000
commit21cd1918682363fb7912d632e269a589dd21aad4 (patch)
tree12d58afda83d8231972f03330d85425ff6961c1a /config/openbgpd
parent320b8afa9bed3998aa04e51c77733c48466250c9 (diff)
downloadpfsense-packages-21cd1918682363fb7912d632e269a589dd21aad4.tar.gz
pfsense-packages-21cd1918682363fb7912d632e269a589dd21aad4.tar.bz2
pfsense-packages-21cd1918682363fb7912d632e269a589dd21aad4.zip
Correctly detect if a bgpd is running by removing grep spurious lines.
Diffstat (limited to 'config/openbgpd')
-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