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

Systemd - Add wait for network #114

Closed
csghuser opened this issue Sep 16, 2016 · 4 comments
Closed

Systemd - Add wait for network #114

csghuser opened this issue Sep 16, 2016 · 4 comments

Comments

@csghuser
Copy link

csghuser commented Sep 16, 2016

Hello,

Would it be possible to add the following to the systemd template?

[Unit]
Description=kafka daemon
Wants=network-online.target
After=network-online.target

To ensure that the network is up and running before kafka attempts to start?

Without this, in the event of a server restart, it's possible that kafka is started before the network is ready (waiting for dhcp address for example). Kafka doesn't seem to handle this very well and crashes with an unable to resolve error (as it tries to connect to the zookeeper cluster).

Thanks!

@mthssdrbrg
Copy link
Contributor

Yep, seems completely reasonable.

@csghuser
Copy link
Author

Great, thanks again!

@mthssdrbrg
Copy link
Contributor

Thanks for reporting it. I'll get it merged later today and cut a new release.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants