summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-06-30 11:58:32 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-06-30 12:01:08 +0200
commit243e27abccf8d02caabc6ae1ea758c4bdc3069e2 (patch)
treeb07c2070d587cfe798465b9f6dd71db18eec7d0f /tools
parentMerge pull request #13866 from LabNConsulting/mgmtd/incllang (diff)
downloadfrr-243e27abccf8d02caabc6ae1ea758c4bdc3069e2.tar.xz
frr-243e27abccf8d02caabc6ae1ea758c4bdc3069e2.zip
tools: Ignore errors for frr reload stuff
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/frrinit.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frrinit.sh.in b/tools/frrinit.sh.in
index 42adefb9e..428d57c55 100644
--- a/tools/frrinit.sh.in
+++ b/tools/frrinit.sh.in
@@ -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 --bindir "$B_PATH" --confdir "$C_PATH" --rundir "$V_PATH" "$NEW_CONFIG_FILE" `echo $nsopt`
- exit $?
+ exit 0
;;
*)