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

BIND graceful shutdown. Fixes #10824 #917

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

vktg
Copy link
Contributor

@vktg vktg commented Aug 11, 2020

Bind is killed quite TERMinally in the /usr/local/etc/rc.d/named.sh script - with a SIGTERM. This causes the server to stop uncleanly.

Bug is that this causes journal files with dynamic zone updates (e.g. DHCP server updating named zones) to not be synchronized with zones and fail to reload with errors such as:

journal rollforward failed: journal out of sync with zone

Could be fixed with an "rndc sync -clean" before shutdown.

https://www.freebsd.org/cgi/man.cgi?query=rndc&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html:

sync [-clean] [zone [class [view]]]
	   Sync	changes	in the journal file for	a dynamic zone to the master
	   file. If the	"-clean" option	is specified, the journal file is also
	   removed. If no zone is specified, then all zones are	synced.

@vktg
Copy link
Contributor Author

vktg commented Aug 12, 2020

@netgate-git-updates netgate-git-updates merged commit cfdb6e7 into pfsense:devel Aug 19, 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
3 participants