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

Add restart_if function for Alpine #480

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

nathanleclaire
Copy link
Contributor

@nathanleclaire nathanleclaire commented Nov 7, 2016

We need this for Azure-provided DNS to work on our instances.

It attempts to call ifdown eth0 && ifup eth0 by default, this does not work for us because they expect the interfaces to be configured statically in /etc/network/interfaces. We configure them dynamically using dhcpcd, so a simple SIGHUP to that daemon will suffice to renew the DHCP lease after the agent has set hostname.

@ahmetalpbalkan @hglkrijger @brendandixon PTAL

Signed-off-by: Nathan LeClaire nathan.leclaire@gmail.com

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
@nathanleclaire
Copy link
Contributor Author

@ahmetalpbalkan @hglkrijger @brendandixon Anyone have a chance to take a look at this? Thanks.

@brendandixon
Copy link
Contributor

@nathanleclaire LGTM.

@brendandixon brendandixon added this to the v2.2.1 milestone Nov 11, 2016
@brendandixon brendandixon merged commit 5d66b1c into Azure:master Nov 11, 2016
@nathanleclaire
Copy link
Contributor Author

Excellent thanks @brendandixon

@nathanleclaire nathanleclaire deleted the alpine_restart_if branch November 11, 2016 19:26
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.

3 participants