NetBSD Problem Report #35334

From www@NetBSD.org  Fri Dec 29 02:00:07 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 56C2B63B880; Fri, 29 Dec 2006 02:00:07 +0000 (UTC)
Message-Id: <20061229020007.56C2B63B880@narn.NetBSD.org>
Date: Fri, 29 Dec 2006 02:00:07 +0000 (UTC)
From: ishit@oak.dti.ne.jp
Reply-To: ishit@oak.dti.ne.jp
To: gnats-bugs@NetBSD.org
Subject: cat not stopping use sysutils/munin-node rc.d file
X-Send-Pr-Version: www-1.0

>Number:         35334
>Category:       pkg
>Synopsis:       cat not stopping use sysutils/munin-node rc.d file
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 29 02:05:00 +0000 2006
>Closed-Date:    Fri Dec 29 06:59:31 +0000 2006
>Last-Modified:  Fri Dec 29 06:59:31 +0000 2006
>Originator:     ISIHARA Takanori
>Release:        NetBSD/amd64 2.0
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD search.ombudsman.jp 2.0.3_STABLE NetBSD 2.0.3_STABLE (GENERIC.user64) #0: Sun Nov  6 01:28:41 JST 2005  root@search.ombudsman.jp:/opt/src-2-0/sys/arch/amd64/compile/GENERIC.user64 amd64
>Description:
I can not stop munin-node use /etc/rc.d/munin-node script.

>How-To-Repeat:

# /etc/rc.d/munin-node stop
munin_node not running?
# ps augxww | grep munin-node
root    27109  0.0  0.7 7680   6952 ?? Ss   10:49AM   0:00.06 perl: /usr/pkg/sbin/munin-node (perl)
# cat /var/run/munin/munin-node.pid
27109
# pkg_info | grep munin-node
munin-node-1.3.2    System monitoring tool, client version

>Fix:

>Release-Note:

>Audit-Trail:
From: OBATA Akio <obache@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35334: cat not stopping use sysutils/munin-node rc.d file
Date: Fri, 29 Dec 2006 11:40:38 +0900

 If you replace @PERL@ with @PERL5@ in sysutils/munin-node/files/munin-node.sh,
 dose it work?

From: OBATA Akio <obache@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35334: cat not stopping use sysutils/munin-node rc.d file
Date: Fri, 29 Dec 2006 11:55:22 +0900

 Or add 
 pidfile="@VARBASE@/run/munin-node.pid"
 to files/munin-node.sh?

From: ishit <ishit@oak.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35334: cat not stopping use sysutils/munin-node rc.d file
Date: Fri, 29 Dec 2006 12:32:42 +0900

 At Fri, 29 Dec 2006 03:00:05 +0000 (UTC), OBATA Akio wrote:
 >  Or add 
 >  pidfile="@VARBASE@/run/munin-node.pid"
 >  to files/munin-node.sh?

 munin-node.pid file is /var/run/munin/munin.pid, I try
 add pidfile="/var/run/munin/munin-node.pid" to /etc/rc.d/munin-node
 and run /etc/rc.d/munin-node, I can not stop munin-node.

From: ishit <ishit@oak.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35334: cat not stopping use sysutils/munin-node rc.d file
Date: Fri, 29 Dec 2006 12:27:15 +0900

 At Fri, 29 Dec 2006 02:45:03 +0000 (UTC), OBATA Akio wrote:
 >  If you replace @PERL@ with @PERL5@ in sysutils/munin-node/files/munin-node.sh,
 >  dose it work?

    I think replace successfully and working perl.

 % diff -u /usr/pkg/share/examples/rc.d/munin-node /usr/pkgsrc/sysutils/munin-node/files/munin-node.sh
 --- /usr/pkg/share/examples/rc.d/munin-node     2006-12-29 08:54:20.000000000 +0900
 +++ /usr/pkgsrc/sysutils/munin-node/files/munin-node.sh 2006-07-28 00:04:15.000000000 +0900
 @@ -18,17 +18,17 @@

  name="munin_node"
  rcvar=$name
 -command=/usr/pkg/sbin/munin-node
 -command_interpreter=/usr/pkg/bin/perl
 -required_files=/usr/pkg/etc/munin/munin-node.conf
 +command=@PREFIX@/sbin/munin-node
 +command_interpreter=@PERL@
 +required_files=@PKG_SYSCONFDIR@/munin-node.conf

 -if [ ! -d /var/munin/plugin-state ]; then
 -       mkdir /var/munin/plugin-state
 -       chown munin:munin /var/munin/plugin-state
 +if [ ! -d @STATEDIR@ ]; then
 +       mkdir @STATEDIR@
 +       chown @MUNIN_USER@:@MUNIN_GROUP@ @STATEDIR@
  fi
 -if [ ! -d /var/run/munin ]; then
 -       mkdir /var/run/munin
 -       chown munin:munin /var/run/munin
 +if [ ! -d @MUNIN_RUN@ ]; then
 +       mkdir @MUNIN_RUN@
 +       chown @MUNIN_USER@:@MUNIN_GROUP@ @MUNIN_RUN@
  fi

  if [ -f /etc/rc.subr ]; then

 % ls -al /usr/pkg/bin/perl
 -rwxr-xr-x  2 root  wheel  20687 Aug 12  2005 /usr/pkg/bin/perl
 % /usr/pkg/bin/perl -v

 This is perl, v5.8.7 built for x86_64-netbsd-thread-multi

 Copyright 1987-2005, Larry Wall

 Perl may be copied only under the terms of either the Artistic License or the
 GNU General Public License, which may be found in the Perl 5 source kit.

 Complete documentation for Perl, including FAQ lists, should be found on
 this system using `man perl' or `perldoc perl'.  If you have access to the
 Internet, point your browser at http://www.perl.org/, the Perl Home Page.

From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/35334 CVS commit: pkgsrc/sysutils/munin-node/files
Date: Fri, 29 Dec 2006 06:37:03 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Dec 29 06:37:03 UTC 2006

 Modified Files:
 	pkgsrc/sysutils/munin-node/files: munin-node.sh

 Log Message:
 Net::Server breaks rc.subr's techniques for detecting whether the
 process running at a certain PID is actually the process we wish to
 stop.  Just unconditionally send SIGTERM to the PID instead, like a
 security/amavisd-new doing, fixed PR 35334.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 pkgsrc/sysutils/munin-node/files/munin-node.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@netbsd.org
State-Changed-When: Fri, 29 Dec 2006 06:59:31 +0000
State-Changed-Why:
Fixed.  Thanks for PR!


>Unformatted:

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.