commit | 7851d4a79d09d95a8a26e7b749f2c88fc48fbbef | [log] [tgz] |
---|---|---|
author | Lotus Xu <xuxiaohan@bytedance.com> | Tue Nov 03 18:47:16 2020 +0800 |
committer | Lei YU <yulei.sh@bytedance.com> | Wed Jul 14 07:27:23 2021 +0000 |
tree | 85c4b16a2004e36c016d22e89d0b8c794e3bf218 | |
parent | 886268b9c4b513e159c0d09b91eaf017d8704f8b [diff] [blame] |
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
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 e0ee717..703bc35 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 @@ 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