diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-03-21 08:52:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 08:52:52 +0100 |
commit | 25d7130380d9ce6146fb14c58da330116ef9da8f (patch) | |
tree | 43945000fd803427c86555cd967c4a13cef4235d /tools | |
parent | Merge pull request #9953 from donaldsharp/system_route_replace (diff) | |
parent | tools: suppress unuseful warnings during restarting frr (diff) | |
download | frr-25d7130380d9ce6146fb14c58da330116ef9da8f.tar.xz frr-25d7130380d9ce6146fb14c58da330116ef9da8f.zip |
Merge pull request #8967 from anlancs/fix-startup-error-info
tools: suppress unuseful warnings during restarting frr
Diffstat (limited to 'tools')
-rw-r--r-- | tools/frrcommon.sh.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/frrcommon.sh.in b/tools/frrcommon.sh.in index 7cde7a119..d95f2d4be 100644 --- a/tools/frrcommon.sh.in +++ b/tools/frrcommon.sh.in @@ -191,7 +191,7 @@ daemon_stop() { [ -z "$fail" -a -z "$pid" ] && fail="pid file is empty" [ -n "$fail" ] || kill -0 "$pid" 2>/dev/null || fail="pid $pid not running" - if [ -n "$fail" ]; then + if [ -n "$fail" ] && [ "$2" != "--quiet" ]; then log_failure_msg "Cannot stop $dmninst: $fail" return 1 fi @@ -262,7 +262,7 @@ all_stop() { done for dmninst in $reversed; do - daemon_stop "$dmninst" & + daemon_stop "$dmninst" "$1" & pids="$pids $!" done for pid in $pids; do @@ -350,7 +350,7 @@ frrcommon_main() { start) all_start;; stop) all_stop;; restart) - all_stop + all_stop --quiet all_start ;; *) $cmd "$@";; |