From d08700345123e7eda998e9f91a66912c34106e51 Mon Sep 17 00:00:00 2001 From: Brian Rak Date: Mon, 26 Sep 2022 11:18:26 -0400 Subject: [PATCH] tools: Configure systemd to always restart FRR, regardless of exit code The current service file configures restarts on-abnormal, which translates to "unclean signal", "timeout", or "watchdog". This patch updates it to always restart, as there's never really a time watchfrr should exit by itself at all. Signed-off-by: Brian Rak --- tools/frr.service.in | 2 +- tools/frr@.service.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/frr.service.in b/tools/frr.service.in index df1e4f3b08..1e958dd93e 100644 --- a/tools/frr.service.in +++ b/tools/frr.service.in @@ -15,7 +15,7 @@ StartLimitBurst=3 TimeoutSec=@TIMEOUT_MIN@m WatchdogSec=60s RestartSec=5 -Restart=on-abnormal +Restart=always LimitNOFILE=1024 PIDFile=@CFG_STATE@/watchfrr.pid ExecStart=@CFG_SBIN@/frrinit.sh start diff --git a/tools/frr@.service.in b/tools/frr@.service.in index 1cbef1b18c..85408a0cc7 100644 --- a/tools/frr@.service.in +++ b/tools/frr@.service.in @@ -15,7 +15,7 @@ StartLimitBurst=3 TimeoutSec=@TIMEOUT_MIN@m WatchdogSec=60s RestartSec=5 -Restart=on-abnormal +Restart=always LimitNOFILE=1024 PIDFile=@CFG_STATE@/%I/watchfrr.pid ExecStart=@CFG_SBIN@/frrinit.sh start %I