diff options
author | Lotus Xu <xuxiaohan@bytedance.com> | 2020-11-03 13:47:16 +0300 |
---|---|---|
committer | Lei YU <yulei.sh@bytedance.com> | 2021-07-14 10:27:23 +0300 |
commit | 7851d4a79d09d95a8a26e7b749f2c88fc48fbbef (patch) | |
tree | 85c4b16a2004e36c016d22e89d0b8c794e3bf218 | |
parent | 886268b9c4b513e159c0d09b91eaf017d8704f8b (diff) | |
download | openbmc-7851d4a79d09d95a8a26e7b749f2c88fc48fbbef.tar.xz |
bytedance: g220a: Add retry for me-time-sync
ipmb may not be ready for communication when me-time-sync start.
Add some retry so that the time could be synced.
Tested: Test 10 times, me-time-sync can work well
Signed-off-by: Lotus Xu <xuxiaohan@bytedance.com>
Change-Id: I93343d2ac17fc13b1d094bf05f424d9cb54cfa3f
-rw-r--r-- | meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service index e0ee717c5f..703bc35333 100644 --- a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service +++ b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service @@ -3,9 +3,16 @@ Description=Sync time from ME Wants=ipmb.service After=ipmb.service +#ipmb may not ready for communication when +#me-time-sync start, add some retry [Service] -Type=oneshot +Type=simple +Restart=always +StartLimitInterval=90 +StartLimitBurst=5 ExecStart=/usr/bin/me-time-sync.sh +RemainAfterExit=yes + [Install] WantedBy=multi-user.target |