NetBSD Problem Report #57242
From martin@duskware.de Wed Feb 22 12:01:59 2023
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5AD581A9239
for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Feb 2023 12:01:59 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: unbound rc.d script does not work with chrooted unbound
X-Send-Pr-Version: 3.95
>Number: 57242
>Category: bin
>Synopsis: unbound rc.d script does not work with chrooted unbound
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: hannken
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 22 12:05:00 +0000 2023
>Closed-Date: Thu Apr 02 19:45:49 +0000 2026
>Last-Modified: Thu Apr 02 19:45:49 +0000 2026
>Originator: Martin Husemann
>Release: NetBSD 10.0_BETA
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD plug.duskware.de 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #7: Fri Feb 10 14:39:45 CET 2023 martin@seven-days-to-the-wolves.aprisoft.de:/work/src-10/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:
In a build with MKUNBOUND=yes the /etc/rc.d/unbound script does not properly
work. Unbound is started in a chroot but the pid file path is not properly
adjusted in the script.
>How-To-Repeat:
Install a MKUNBOUND=yes build and configure unbound to run, then query
its status and try to restart it.
- add "unbound=YES to" /etc/rc.conf
- /etc/rc.d/unbound start
- pgrep unbound (note the pid)
- /etc/rc.d/unbound status (claims it is not running)
- /etc/rc.d/unbound restart
- pgrep unbound (note the pid has not changed)
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: "Juergen Hannken-Illjes" <hannken@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57242 CVS commit: src/external/bsd/unbound/include
Date: Tue, 23 May 2023 20:07:21 +0000
Module Name: src
Committed By: hannken
Date: Tue May 23 20:07:21 UTC 2023
Modified Files:
src/external/bsd/unbound/include: config.h
Log Message:
Set PID path back to "/var/run/unbound.pid" so rc scripts work again.
Ok: Christos Zoulas
PR bin/57242 unbound rc.d script does not work with chrooted unbound
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/bsd/unbound/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57242 CVS commit: [netbsd-10] src/external/bsd/unbound/include
Date: Sun, 28 May 2023 10:00:53 +0000
Module Name: src
Committed By: martin
Date: Sun May 28 10:00:53 UTC 2023
Modified Files:
src/external/bsd/unbound/include [netbsd-10]: config.h
Log Message:
Pull up following revision(s) (requested by hannken in ticket #179):
external/bsd/unbound/include/config.h: revision 1.11
Set PID path back to "/var/run/unbound.pid" so rc scripts work again.
Ok: Christos Zoulas
PR bin/57242 unbound rc.d script does not work with chrooted unbound
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.2.1 src/external/bsd/unbound/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: bin-bug-people->hannken
Responsible-Changed-By: hannken@NetBSD.org
Responsible-Changed-When: Sun, 28 May 2023 13:39:03 +0000
Responsible-Changed-Why:
Take.
State-Changed-From-To: open->closed
State-Changed-By: hannken@NetBSD.org
State-Changed-When: Sun, 28 May 2023 13:39:03 +0000
State-Changed-Why:
Fixed in head -- pullup to -10 complete.
State-Changed-From-To: closed->open
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sat, 28 Mar 2026 23:02:35 +0000
State-Changed-Why:
This issue was reintroduced with another unbound update. Reopen to track pullup.
From: "David H. Gutteridge" <gutteridge@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57242 CVS commit: src/external/bsd/unbound/include
Date: Sat, 28 Mar 2026 23:01:11 +0000
Module Name: src
Committed By: gutteridge
Date: Sat Mar 28 23:01:10 UTC 2026
Modified Files:
src/external/bsd/unbound/include: config.h
Log Message:
unbound: readjust PID path so rc scripts work again
Readdresses PR bin/57242 "unbound rc.d script does not work with
chrooted unbound".
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/bsd/unbound/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->pending-pullups
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sat, 28 Mar 2026 23:25:40 +0000
State-Changed-Why:
Pullup-11 ticket #231.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57242 CVS commit: [netbsd-11] src/external/bsd/unbound/include
Date: Thu, 2 Apr 2026 19:13:46 +0000
Module Name: src
Committed By: martin
Date: Thu Apr 2 19:13:46 UTC 2026
Modified Files:
src/external/bsd/unbound/include [netbsd-11]: config.h
Log Message:
Pull up following revision(s) (requested by gutteridge in ticket #231):
external/bsd/unbound/include/config.h: revision 1.15
unbound: readjust PID path so rc scripts work again
Readdresses PR bin/57242 "unbound rc.d script does not work with
chrooted unbound".
To generate a diff of this commit:
cvs rdiff -u -r1.12.4.1 -r1.12.4.2 src/external/bsd/unbound/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Thu, 02 Apr 2026 19:45:49 +0000
State-Changed-Why:
Pullup to 11 completed, re-closing.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.