Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Conversation

@neofang7
Copy link

Fixes: IOTOS-1743

During Ostro shutdown, systemd-timesyncd service will start up to sync
with time server. However, network services are very possible to be
stopped before timesyncd starts up. So, add network.target dependency to
timesyncd.service to garantee that timesyncd will be triggered before
network services stop.

Signed-off-by: neofang7 neo.fang@intel.com

@ostroproject-ci
Copy link

Can one of the admins verify this patch?

@mythi
Copy link
Contributor

mythi commented Aug 11, 2016

@neofang7 What's the Upstream-Status to this?

@neofang7
Copy link
Author

@mythi @peijiajames @nwang2
Please help to review.

@neofang7
Copy link
Author

@mythi This patch is only to improve Ostro shutdown performance on GT boards.
Is it necessary to deliver to upstream?

@mythi
Copy link
Contributor

mythi commented Aug 11, 2016

@neofang7 to me it looks you are fixing an obvious upstream race condition (nothing Ostro specific).

Fixes: IOTOS-1743

During Ostro shutdown, systemd-timesyncd service will start up to sync
with time server. However, network services are very possible to be
stopped before timesyncd starts up. So, add network.target dependency to
timesyncd.service to garantee that timesyncd will be triggered before
network services stop.

Signed-off-by: neofang7 <neo.fang@intel.com>
@mythi
Copy link
Contributor

mythi commented Aug 18, 2016

@neofang7 any update?

1 similar comment
@mythi
Copy link
Contributor

mythi commented Aug 31, 2016

@neofang7 any update?

@jlaako
Copy link
Contributor

jlaako commented Nov 2, 2016

Many systemd services, even the ones shipped with systemd itself have similar faults. However, you may want to use network-online.target instead, because for interfaces using DHCP the network.target is reached already before DHCP has successfully obtained an IP address...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants