NetBSD Problem Report #53025

From www@NetBSD.org  Tue Feb 13 23:49:20 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 007A37A103
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 13 Feb 2018 23:49:20 +0000 (UTC)
Message-Id: <20180213234919.2691B7A1BA@mollari.NetBSD.org>
Date: Tue, 13 Feb 2018 23:49:19 +0000 (UTC)
From: khorben@defora.org
Reply-To: khorben@defora.org
To: gnats-bugs@NetBSD.org
Subject: spamd(8) from mail/spamassassin cannot be stopped after reloading
X-Send-Pr-Version: www-1.0

>Number:         53025
>Category:       pkg
>Synopsis:       spamd(8) from mail/spamassassin cannot be stopped after reloading
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 13 23:50:00 +0000 2018
>Last-Modified:  Fri Feb 23 14:30:01 +0000 2018
>Originator:     Pierre Pronchery
>Release:        pkgsrc-2017Q3
>Organization:
>Environment:
NetBSD host.name 8.0_BETA NetBSD 8.0_BETA (GENERIC) amd64
>Description:
The init script for spamd sends SIGHUP for reloading, after locating the PID in /var/run/spamd.pid, and this works fine the first time. However, then the Perl interpreter changes argv[0] to e.g. /usr/pkg/bin/perl5.26.0 and the init script will not be able to match the process anymore with the PID registered. spamd(8) then has to be stopped, restarted or otherwise interacted with manually.
>How-To-Repeat:
# ps auxw | grep 1234
root    1234  0.0 14.8 154984 77572 ?       Ss   12:37AM 0:01.24 /usr/pkg/bin/perl -T -w /usr/pkg/bin/spamd -u _spamd -i 127.0.0.1
# /etc/rc.d/spamd status
spamd is running as pid 1234.
# /etc/rc.d/spamd reload
Reloading spamd config files.
# /etc/rc.d/spamd status
spamd is not running.
# cat /var/run/spamd.pid                                                   
1234
# ps auxw | grep 1234
root    1234  0.0 14.8 154984 77572 ?       Ss   12:37AM 0:01.24 /usr/pkg/bin/perl5.26.0 -T -w /usr/pkg/bin/spamd -u _spamd -i 127

>Fix:

>Audit-Trail:
From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53025: spamd(8) from mail/spamassassin cannot be stopped
 after reloading
Date: Fri, 23 Feb 2018 14:26:37 +0000

 No movement upstream since February 2016:

 https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7295

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.