From 58c1dab33bc7fb3311384a2c0f1442ea7a930aa5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 1 Jun 2026 17:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Sync=202026-06-01=2017:14:40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hickory-dns/Makefile | 2 +- .../files/etc/hickory-dns/forwarder.toml | 2 +- hickory-dns/files/etc/init.d/hickory-dns | 19 ------------------- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/hickory-dns/Makefile b/hickory-dns/Makefile index fb25e308..e74ec542 100644 --- a/hickory-dns/Makefile +++ b/hickory-dns/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hickory-dns PKG_VERSION:=0.26.1 -PKG_RELEASE:=28 +PKG_RELEASE:=29 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/hickory-dns/hickory-dns/tar.gz/v$(PKG_VERSION)? diff --git a/hickory-dns/files/etc/hickory-dns/forwarder.toml b/hickory-dns/files/etc/hickory-dns/forwarder.toml index dd95efd3..37516291 100644 --- a/hickory-dns/files/etc/hickory-dns/forwarder.toml +++ b/hickory-dns/files/etc/hickory-dns/forwarder.toml @@ -38,7 +38,7 @@ axfr_policy = "AllowAll" [zones.stores] type = "sqlite" zone_path = "/etc/hickory-dns/lan.zone" -journal_path = "/var/lib/hickory-dns/lan.jrnl" +journal_path = ":memory:" allow_update = true [[zones.stores.tsig_keys]] diff --git a/hickory-dns/files/etc/init.d/hickory-dns b/hickory-dns/files/etc/init.d/hickory-dns index d7bf6eca..a13bc970 100755 --- a/hickory-dns/files/etc/init.d/hickory-dns +++ b/hickory-dns/files/etc/init.d/hickory-dns @@ -12,9 +12,6 @@ TSIG_KEY=/etc/hickory-dns/update.key RUN_USER=nobody RUN_GROUP=nogroup -STATE_DIR=/var/lib/hickory-dns -LAN_JOURNAL="${STATE_DIR}/lan.jrnl" - prepare_config_dir() { [ -d "$CONF_DIR" ] || mkdir -p "$CONF_DIR" @@ -33,25 +30,9 @@ generate_tsig_key() { chmod 400 "$TSIG_KEY" 2>/dev/null || true } -prepare_runtime_dirs() { - mkdir -p "$STATE_DIR" - - chown "$RUN_USER:$RUN_GROUP" "$STATE_DIR" 2>/dev/null || true - chmod 755 "$STATE_DIR" 2>/dev/null || true -} - -cleanup_stale_state() { - # Remove stale journal so hickory-dns always starts from the zone file. - # ipv6-neigh re-registers all dynamic entries on startup, so the journal - # has no durable value and may contain corrupt state after unclean shutdown. - rm -f "$LAN_JOURNAL" -} - start_service() { prepare_config_dir generate_tsig_key - prepare_runtime_dirs - cleanup_stale_state procd_open_instance hickory-dns procd_set_param command "$PROG" -c "$CONF" -q