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

how to prevent "dhcpcd %iface%" from exiting if no IP received? #423

Open
perkelix opened this issue Dec 8, 2024 · 2 comments
Open

how to prevent "dhcpcd %iface%" from exiting if no IP received? #423

perkelix opened this issue Dec 8, 2024 · 2 comments

Comments

@perkelix
Copy link
Contributor

perkelix commented Dec 8, 2024

Not a bug, as much as a question.

When launched via dhcpcd %iface%, the binary seemingly exits if no answer was received. Is there any command option that can be passed to make the binary fork to the background if the timeout has been reached and keep on waiting for a reply?

The --timeout option seems like it might do what we need, but the manual page's phrasing is ambiguous.

I'm asking because, if the binary exits, it makes ifup fail irreversibly. At that point, only a host to which the administrator has physical access can be logged onto to have a manual attempt at acquiring an IP, while remote hosts are essentially lost due to the binary exiting.

@rsmarples
Copy link
Member

Is this a dupe of #413?

@perkelix
Copy link
Contributor Author

perkelix commented Dec 9, 2024

No. The other one wants to wait for an error before exiting. This one wants to not exit and instead fork to the background to wait for an IP.

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

No branches or pull requests

2 participants