Revert "Revert "[hostcfgd] Delay hostcfgd and aaastatsd for faster boot time (#7965)" (#8705)" (#8724)

This reverts commit f4dea87cf9.
This commit is contained in:
Ying Xie 2021-09-14 07:57:43 -07:00 committed by GitHub
parent 690f6ad883
commit 66ca6d33c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 6 deletions

View File

@ -12,6 +12,3 @@ Restart=on-failure
RestartSec=10
TimeoutStopSec=3
[Install]
WantedBy=sonic.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Delays aaastatsd daemon until SONiC has started
PartOf=aaastatsd.service
[Timer]
OnActiveSec=1min 30 sec
Unit=aaastatsd.service
[Install]
WantedBy=timers.target sonic.target

View File

@ -9,6 +9,3 @@ After=sonic.target
Type=simple
ExecStart=/usr/local/bin/hostcfgd
[Install]
WantedBy=sonic.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Delays hostcfgd daemon until SONiC has started
PartOf=hostcfgd.service
[Timer]
OnActiveSec=1min 30 sec
Unit=hostcfgd.service
[Install]
WantedBy=timers.target sonic.target