summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-03-21 08:52:52 +0100
committerGitHub <noreply@github.com>2022-03-21 08:52:52 +0100
commit25d7130380d9ce6146fb14c58da330116ef9da8f (patch)
tree43945000fd803427c86555cd967c4a13cef4235d /tools
parentMerge pull request #9953 from donaldsharp/system_route_replace (diff)
parenttools: suppress unuseful warnings during restarting frr (diff)
downloadfrr-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.in6
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 "$@";;