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:
parent
60c9c0b379
commit
90fa9a2a61
@ -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]
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user