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

Add network dependency in timesyncd - #250

Open
neofang7 wants to merge 1 commit into
ostroproject:masterfrom
neofang7:master
Open

neofang7 wants to merge 1 commit into
ostroproject:masterfrom
neofang7:master

Conversation

@neofang7

Copy link
Copy Markdown

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
Copy Markdown

Can one of the admins verify this patch?

@mythi

mythi commented Aug 11, 2016

Copy link
Copy Markdown
Contributor

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

@neofang7

Copy link
Copy Markdown
Author

@mythi @peijiajames @nwang2
Please help to review.

@neofang7

Copy link
Copy Markdown
Author

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

@mythi

mythi commented Aug 11, 2016

Copy link
Copy Markdown
Contributor

@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

mythi commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

@neofang7 any update?

1 similar comment
@mythi

mythi commented Aug 31, 2016

Copy link
Copy Markdown
Contributor

@neofang7 any update?

@jlaako

jlaako commented Nov 2, 2016

Copy link
Copy Markdown
Contributor

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