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.
This commit is contained in:
shlomibitton 2021-10-21 02:08:36 +03:00 committed by Judy Joseph
parent 60c9c0b379
commit 90fa9a2a61
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,8 @@ Description=Delays aaastatsd daemon until SONiC has started
PartOf=aaastatsd.service
[Timer]
OnActiveSec=1min 30 sec
OnUnitActiveSec=0 sec
OnBootSec=1min 30 sec
Unit=aaastatsd.service
[Install]

View File

@ -3,7 +3,8 @@ Description=Delays hostcfgd daemon until SONiC has started
PartOf=hostcfgd.service
[Timer]
OnActiveSec=1min 30 sec
OnUnitActiveSec=0 sec
OnBootSec=1min 30 sec
Unit=hostcfgd.service
[Install]