Skip to content

Commit 90fa9a2

Browse files
shlomibittonjudyjoseph
authored andcommitted
Fix delay type from boot instead of unit activation (#8895)
Why I did it With current code the delay will take place even if simple 'config reload' command executed and this is not desired. This delay should be used only when fast-rebooting. How I did it Change the type of delay to OnBootSec instead of OnActiveSec. How to verify it Fast-reboot with this PR and observe the delay. Run 'config-reload' command and observe no delay is running.
1 parent 60c9c0b commit 90fa9a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/sonic-host-services-data/debian/sonic-host-services-data.aaastatsd.timer

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Description=Delays aaastatsd daemon until SONiC has started
33
PartOf=aaastatsd.service
44

55
[Timer]
6-
OnActiveSec=1min 30 sec
6+
OnUnitActiveSec=0 sec
7+
OnBootSec=1min 30 sec
78
Unit=aaastatsd.service
89

910
[Install]

src/sonic-host-services-data/debian/sonic-host-services-data.hostcfgd.timer

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Description=Delays hostcfgd daemon until SONiC has started
33
PartOf=hostcfgd.service
44

55
[Timer]
6-
OnActiveSec=1min 30 sec
6+
OnUnitActiveSec=0 sec
7+
OnBootSec=1min 30 sec
78
Unit=hostcfgd.service
89

910
[Install]

0 commit comments

Comments
 (0)