mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 17:01:51 +00:00
Merge pull request #8967 from anlancs/fix-startup-error-info
tools: suppress unuseful warnings during restarting frr
This commit is contained in:
commit
25d7130380
@ -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 "$@";;
|
||||
|
Loading…
Reference in New Issue
Block a user