NetBSD Problem Report #41231

From asau@inbox.ru  Thu Apr 16 16:12:00 2009
Return-Path: <asau@inbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 213EE63C1FA
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 16 Apr 2009 16:12:00 +0000 (UTC)
Message-Id: <87bpqw60j7.fsf@inbox.ru>
Date: Thu, 16 Apr 2009 20:11:56 +0400
From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@gnats.NetBSD.org
Subject: rc scripts don't kill daemons at stop

>Number:         41231
>Category:       bin
>Synopsis:       rc scripts don't kill daemons
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 16 16:15:00 +0000 2009
>Last-Modified:  Fri Apr 17 17:00:04 +0000 2009
>Originator:     Aleksej Saushev
>Release:        NetBSD 5.0_RC3
>Organization:
>Environment:
System: NetBSD asau.local 5.0_RC3 NetBSD 5.0_RC3 (KERN) #0: Wed Apr 8 11:40:17 MSD 2009 asau@asau.local:/tmp/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	rc scripts don't stop some daemons, thus preventing (unattended) shutdown.
	It is well possible that those daemons are not written correctly,
	but it is expected, that they're sent KILL signal after some time.

	The problem exists on FreeBSD 6 too.
>How-To-Repeat:
	Note that shutdown(8) cannot stop mpd (audio/musicpd) daemon.
>Fix:
	Unknown.

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/41231: rc scripts don't kill daemons at stop
Date: Fri, 17 Apr 2009 15:49:36 +0200

 On Thu, Apr 16, 2009 at 04:15:00PM +0000, Aleksej Saushev wrote:
 > >How-To-Repeat:
 > 	Note that shutdown(8) cannot stop mpd (audio/musicpd) daemon.

 I'm not sure why you are filling this in category "bin" - this either is
 a bug in the pkgsrc supplied rc.d script or musicpd itself, so a better
 category would be "pkg".

 Or did you mean init(8) can not kill the musicpd process on shutdown? That
 would be a kernel bug, so category should be "kern".

 Martin

From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/41231: rc scripts don't kill daemons at stop
Date: Fri, 17 Apr 2009 20:55:16 +0400

 Martin Husemann <martin@duskware.de> writes:

 >  On Thu, Apr 16, 2009 at 04:15:00PM +0000, Aleksej Saushev wrote:
 >  > >How-To-Repeat:
 >  > 	Note that shutdown(8) cannot stop mpd (audio/musicpd) daemon.
 >  
 >  I'm not sure why you are filling this in category "bin" - this either is
 >  a bug in the pkgsrc supplied rc.d script or musicpd itself, so a better
 >  category would be "pkg".
 >  
 >  Or did you mean init(8) can not kill the musicpd process on shutdown? That
 >  would be a kernel bug, so category should be "kern".

 Since rc.subr resides in base system and isn't in kernel, I think it is "bin".
 In particular, I think that "wait_for_pids" subroutine should kill processes
 after some time out.


 -- 
 BECHA...
    CKOPO CE3OH...

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.