From 549bb3d4833425bcc2e8f0666ec0a13a995d54be Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Fri, 9 Sep 2022 00:16:11 +0200 Subject: [PATCH] [services] Update "WantedBy=" section for tacacs-config.timer. (#11893) The timer execution may fail if triggered during a config reload (when the sonic.target is stopped). This might happen in a rare situation if config reload is executed after reboot in a small time slot (for 0 to 30 seconds) before the tacacs-config timer is triggered. To ensure that timer execution will be resumed after a config reload the WantedBy section of the systemd service is updated to describe relation to sonic.target. Signed-off-by: Oleksandr Ivantsiv Signed-off-by: Oleksandr Ivantsiv --- files/build_templates/tacacs-config.timer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/build_templates/tacacs-config.timer b/files/build_templates/tacacs-config.timer index 28314e06f4..f8380cbab1 100644 --- a/files/build_templates/tacacs-config.timer +++ b/files/build_templates/tacacs-config.timer @@ -9,4 +9,4 @@ OnBootSec=5min 30 sec Unit=tacacs-config.service [Install] -WantedBy=timers.target updategraph.service +WantedBy=timers.target sonic.target sonic-delayed.target