bind: save out served domains on service stop

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 <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville
2025-12-01 21:26:23 -07:00
parent 57242e5db3
commit 605a457cac
2 changed files with 5 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bind
PKG_VERSION:=9.20.15
PKG_RELEASE:=1
PKG_RELEASE:=2
USERID:=bind=57:bind=57
PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>

View File

@@ -20,6 +20,10 @@ reload_service() {
rndc -q reload
}
stop_service() {
rndc stop
}
start_service() {
user_exists bind 57 || user_add bind 57
group_exists bind 57 || group_add bind 57