Skip to content

Commit 549bb3d

Browse files
[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 <[email protected]> Signed-off-by: Oleksandr Ivantsiv <[email protected]>
1 parent 19155df commit 549bb3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/build_templates/tacacs-config.timer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ OnBootSec=5min 30 sec
99
Unit=tacacs-config.service
1010

1111
[Install]
12-
WantedBy=timers.target updategraph.service
12+
WantedBy=timers.target sonic.target sonic-delayed.target

0 commit comments

Comments
 (0)