Skip to content

Commit

Permalink
[hostcfgd] [202012] Fix the delay type to 'boot' delay instead of a u…
Browse files Browse the repository at this point in the history
…nit activation delay (#8896)

#### 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.
  • Loading branch information
shlomibitton authored Nov 23, 2021
1 parent edd6b84 commit 2361e75
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2361e75

Please sign in to comment.