Date: Sat, 14 Mar 2026 19:01:08 +0000 From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 23bd9c085c91 - main - dns/cascade: Fix store global state Message-ID: <69b5b074.33fea.6c4d9e7f@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=23bd9c085c918e02ba68820606fb020182cd18b3 commit 23bd9c085c918e02ba68820606fb020182cd18b3 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2026-03-14 18:39:49 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2026-03-14 19:00:35 +0000 dns/cascade: Fix store global state Cascade fails to create its global state file and therefore loses any configured zones on a restart. Upstream may have included a compiled-in default value of /var/lib/cascade/state.db, but this path does not exist under FreeBSD and the directory is not being created by pkg. Specifying a valid filename using the --state option when starting cascaded appears to rectify the issue. PR: 292208 Reported by: colin@fbg22.ksac.uk --- dns/cascade/Makefile | 2 +- dns/cascade/files/cascade.in | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dns/cascade/Makefile b/dns/cascade/Makefile index 1ea867def137..20dd73470787 100644 --- a/dns/cascade/Makefile +++ b/dns/cascade/Makefile @@ -1,6 +1,6 @@ PORTNAME= cascade DISTVERSION= 0.1.0-RC1 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= dns net PKGNAMESUFFIX= -dns diff --git a/dns/cascade/files/cascade.in b/dns/cascade/files/cascade.in index 902474211f94..8f7af3897bfa 100644 --- a/dns/cascade/files/cascade.in +++ b/dns/cascade/files/cascade.in @@ -12,6 +12,10 @@ # Default value %%ETCDIR%%/config.toml # Path to the cascade configuration file # +# cascade_state (string) +# Default value %%DBDIR%%/state.db +# Path to file where cascade should store its global state +# # cascade_user (string) # This is the user that cascade runs as # Set to %%USERS%% by default @@ -29,11 +33,12 @@ load_rc_config $name : ${cascade_enable:="NO"} : ${cascade_config:="%%ETCDIR%%/config.toml"} +: ${cascade_state:="%%DBDIR%%/state.db"} : ${cascade_user:=%%USERS%%} : ${cascade_group:=%%GROUPS%%} command="%%PREFIX%%/bin/cascaded" -command_args="--config ${cascade_config} --daemonize" +command_args="--config ${cascade_config} --state ${cascade_state} --daemonize" start_precmd="cascade_checkconf" restart_precmd="cascade_checkconf" configtest_cmd="cascade_checkconf"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b5b074.33fea.6c4d9e7f>
