NetBSD Problem Report #60934

From hostmaster@yenn.ulegend.net  Wed Oct 28 22:37:42 2026
Return-Path: <hostmaster@yenn.ulegend.net>
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A57751A923B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 28 Oct 2026 22:37:42 +0000 (UTC)
Message-Id: <20261028223121.43CBFB89DB@yenn.ulegend.net>
Date: Wed, 28 Oct 2026 22:31:21 +0000 (UTC)
From: hostmaster@yenn.ulegend.net
Reply-To: hostmaster@yenn.ulegend.net
To: gnats-bugs@NetBSD.org
Subject: altqd(8) hangs when stopping using rc.d script
X-Send-Pr-Version: 3.95
X-From4GNATS: "hostmaster@yenn.ulegend.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60934
>Category:       bin
>Synopsis:       altqd(8) hangs when stopping using rc.d script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 28 22:40:00 +0000 2026
>Originator:     Charlie Zoor ZSH User
>Release:        NetBSD 11.0_STABLE
>Organization:
	The Underlegend Networks Non-Profit
>Environment:
System: NetBSD yenn.ulegend.net 11.0_STABLE NetBSD 11.0_STABLE (Terror OS) #0: Sat Oct 17 06:59:38 CEST 2026 foo@hell:/2026/netbsd-11/obj-amd64/sys/arch/amd64/compile/TERROR-OS amd64
Architecture: x86_64
Machine: amd64
>Description:
	Altqd rc.d script hangs when stopping using i.e.: service altqd stop,
	I've seen this for years.  So maybe a bug report.  Nb. old ALTQ in
	kernel still works well these days.

>How-To-Repeat:
	service altqd start; sleep 15; service altqd stop

	on a kernel with ALTQ compiled in.
>Fix:
	My fix is this patch to /etc/rc.d/altqd:


--- altqd-b	2026-10-28 23:17:46.879088841 +0100
+++ altqd	2026-10-28 23:20:35.408909936 +0100
@@ -13,9 +13,11 @@
 name="altqd"
 rcvar=$name
 command="/usr/sbin/${name}"
+stop_cmd="kill -KILL $(cat /var/run/${name}.pid)"
 pidfile="/var/run/${name}.pid"
 required_files="/etc/altq.conf"
 extra_commands="reload"

 load_rc_config $name
 run_rc_command "$1"
+


	of course the developers should have a better solution. :P

NetBSD Home
NetBSD PR Database Search

(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.