NetBSD Problem Report #36028
From www@NetBSD.org Sun Mar 18 12:40:47 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id BB4A863B8C3; Sun, 18 Mar 2007 12:40:47 +0000 (UTC)
Message-Id: <20070318124047.BB4A863B8C3@narn.NetBSD.org>
Date: Sun, 18 Mar 2007 12:40:47 +0000 (UTC)
From: ishit@oak.dti.ne.jp
Reply-To: ishit@oak.dti.ne.jp
To: gnats-bugs@NetBSD.org
Subject: can not stopping use mail/postgrey rc.d file
X-Send-Pr-Version: www-1.0
>Number: 36028
>Category: pkg
>Synopsis: can not stopping use mail/postgrey rc.d file
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kim
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 18 12:45:01 +0000 2007
>Closed-Date: Mon Jan 20 09:56:29 +0000 2020
>Last-Modified: Mon Jan 20 09:56:29 +0000 2020
>Originator: ISIHARA Takanori
>Release: NetBSD/amd64 2.0.3
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD search.ombudsman.jp 2.0.3_STABLE NetBSD 2.0.3_STABLE (GENERIC.user64) #0: Sat Apr 15 11:34:15 JST 2006 root@search.ombudsman.jp:/opt/src-2-0/sys/arch/amd64/compile/obj/GENERIC.user64 amd64
>Description:
I can not stopping use mail/postgrey rc.d file.
It seems PR pkg/35334 same problem.
and other Net::Server perl module use packages have this problem. I think.
>How-To-Repeat:
/etc/rc.d/postgrey stop
>Fix:
--- files/postgrey.sh.orig 2004-12-23 00:51:38.000000000 +0900
+++ files/postgrey.sh 2007-03-18 21:30:50.000000000 +0900
@@ -21,5 +21,25 @@
"
@PKGBASE@_flags=${@PKGBASE@_flags-"-i 2525"}
+stop_cmd="postgrey_stop"
+
+# 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.
+#
+postgrey_stop()
+{
+ @ECHO@ "Stopping ${name}."
+ if [ -f ${pidfile} ]; then
+ pid=`@HEAD@ -1 ${pidfile}`
+ doit="kill ${pid}"
+ if ! eval $doit && [ -z "$rc_force" ]; then
+ return 1
+ fi
+ wait_for_pids $pid
+ fi
+ @RM@ -f ${pidfile}
+}
+
load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->kim
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Mon, 19 Mar 2007 08:05:31 +0000
Responsible-Changed-Why:
Over to maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: kim@NetBSD.org
State-Changed-When: Sun, 05 Jan 2020 19:31:47 +0000
State-Changed-Why:
It looks like this has gotten fixed in the mean time,
or is this still an issue?
State-Changed-From-To: feedback->closed
State-Changed-By: kim@NetBSD.org
State-Changed-When: Mon, 20 Jan 2020 09:56:29 +0000
State-Changed-Why:
host mx01.silk.dream.jp[59.157.133.239] said: 550 5.1.1
User Unknown (in reply to RCPT TO command)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.