net/frr: Fix stall on carp hook by redirecting stdout (#5160)

This commit is contained in:
Monviech 2026-01-22 17:31:38 +01:00 committed by GitHub
parent e3bae8e72f
commit 2cc2215bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,8 @@ if (frr_carp_enabled()) {
switch ($type) {
case 'MASTER':
mwexecfm('/usr/local/etc/rc.d/frr start');
// XXX: This will stall if stdout is not redirected
mwexecfm('/usr/local/etc/rc.d/frr start > /dev/null');
break;
case 'BACKUP':
mwexecfm('/usr/local/etc/rc.d/frr stop');