Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linux.ts #605

Merged
merged 1 commit into from
Apr 5, 2020
Merged

Update linux.ts #605

merged 1 commit into from
Apr 5, 2020

Conversation

coolcsh
Copy link
Contributor

@coolcsh coolcsh commented Apr 5, 2020

Added "Wants=network-online.target" to the file. This sets a "dependency" that the networking online starts before Homebridge. From "man systemd.unit - It is a common pattern to include a unit name in both the After= and Requires/Wants= options, in which case the
unit listed will be started before the unit that is configured with these options". In my case my Raspberry Pi sometimes starts homebridge plugins before the network is fully up leading to gethostaddr errors.

Added  "Wants=network-online.target" to the file. This sets a "dependency" that the networking online starts before Homebridge. From "man systemd.unit -  It is a common pattern to include a unit name in both the After= and Requires/Wants= options, in which case the
unit listed will be started before the unit that is configured with these options". In my case my Raspberry Pi sometimes starts homebridge plugins before the network is fully up leading to gethostaddr errors.
@oznu
Copy link
Member

oznu commented Apr 5, 2020

Tested this and it seems ok.

Further reading: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

@oznu oznu merged commit 3828ec5 into homebridge:master Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants