-
Notifications
You must be signed in to change notification settings - Fork 3.8k
bind: save out served domains on service stop #27997
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
Conversation
06cae43 to
a64de09
Compare
|
Just verified that if you do an |
|
Shouldn't that just be "rndc stop"? It'll save the dynamic zones and it'll shutdown bind cleanly... Avoiding things like an nsupdate coming in between sync and shutdown...(IIRC) |
We're running the server with |
We may want to switch to a pattern similar to the one described here rather than run named in the foreground. We can the call |
|
Foreground might not be desirable in managing process lifetimes but it’s an effect of running procd which does all the lifting for us. |
I haven't tested it myself, what issues does it cause? Like, ugly log messages or what are the issues? |
We need a process in the foreground, but it doesn't need to be |
|
@nmeyerhans Should I merge and someone can change the wrapper if they're inclined? Looking through the sources I couldn't find a |
|
Let the usual homie procd do its thing. |
We're talking about potential data loss...(and yes, I understand this PR improves things, but we should aim for a complete fix) |
I don't think we should merge as-is. The potential for data loss due to the race condition is something we should avoid. The procd docs suggest that stopping the service within the |
|
"rndc freeze" might be a workable alternative (assuming that it doesn't return until everything has been synced to disk and that the frozen state isn't remembered across restarts)... But I'd still like to know what issues "rndc stop" causes with procd? |
|
I've just tested this with If |
So... merge? |
If named gets stopped, then started again, but isc-dhcpd isn't also restarted, then we want named to at least have the existing content. Signed-off-by: Philip Prindeville <[email protected]>
a64de09 to
e81a31d
Compare
If named gets stopped, then started again, but isc-dhcpd isn't also restarted, then we want named to at least have the existing content.
📦 Package Details
Maintainer: @nmeyerhans
Description:
Save domains we serve dynamically so they're reloaded if the server gets started after a stop.
🧪 Run Testing Details
✅ Formalities
If your PR contains a patch:
git amcc: @Alphix @systemcrash