]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools: Ignore errors for frr reload stuff
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 30 Jun 2023 09:58:32 +0000 (12:58 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 25 Jul 2024 08:28:42 +0000 (11:28 +0300)
When we pass an unknown/wrong command and do `systemctl reload frr`, all processes
are killed, and not started up.

Like doing with frr-reload.py, all good:

```
$ /usr/lib/frr/frr-reload.py --reload /etc/frr/frr.conf
vtysh failed to process new configuration: vtysh (mark file) exited with status 2:
b'line 20: % Unknown command:  neighbor 192.168.10.123 bfd 300 300\n\n'
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
tools/frrinit.sh.in

index ee10b89e52abc6559012dfebb490ac38f7704018..b0579ca0c4940ceab0690a4236f3cd9fbb152aca 100644 (file)
@@ -123,7 +123,7 @@ reload)
        NEW_CONFIG_FILE="${2:-$C_PATH/frr.conf}"
        [ ! -r $NEW_CONFIG_FILE ] && log_failure_msg "Unable to read new configuration file $NEW_CONFIG_FILE" && exit 1
        "$RELOAD_SCRIPT" --reload "$NEW_CONFIG_FILE" `echo $nsopt`
-       exit $?
+       exit 0
        ;;
 
 *)