NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/60934: altqd(8) hangs when stopping using rc.d script



>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




Home | Main Index | Thread Index | Old Index