NetBSD Problem Report #51959
From www@NetBSD.org Tue Feb 7 11:46:09 2017
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 "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 62E347A1F7
for <gnats-bugs@gnats.NetBSD.org>; Tue, 7 Feb 2017 11:46:09 +0000 (UTC)
Message-Id: <20170207114607.DB3407A292@mollari.NetBSD.org>
Date: Tue, 7 Feb 2017 11:46:07 +0000 (UTC)
From: uwe@NetBSD.org
Reply-To: uwe@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: /etc/rc.d/dhcpcd can't find its pid file
X-Send-Pr-Version: www-1.0
>Number: 51959
>Category: misc
>Synopsis: /etc/rc.d/dhcpcd can't find its pid file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: roy
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 07 11:50:00 +0000 2017
>Closed-Date: Thu Aug 16 09:57:15 +0000 2018
>Last-Modified: Thu Aug 16 09:57:15 +0000 2018
>Originator: Valery Ushakov
>Release: NetBSD-7.0.1
>Organization:
>Environment:
>Description:
/etc/rc.d/dhcpcd tries to figure out the pid file name:
/var/run/dhcpcd-"$ifname".pid
or
/var/run/dhcpcd.pid
depending on whether the interface is specified in dhcpcd_flags.
Unfortunately, sysinst configures dhcpcd_flags with -M (master):
add_rc_conf("dhcpcd_flags=\"-qM %s\"\n", net_dev);
and in that case dhcpcd uses "global" pidfile, not -interface specific
pidfile.
As the result e.g.
/etc/rc.d/dhcpcd stop
does not work.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: misc-bug-people->roy
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sun, 03 Jun 2018 07:57:59 +0000
Responsible-Changed-Why:
Over to dhcpcd author, in case this is still an issue.
From: Roy Marples <roy@marples.name>
To: gnats-bugs@NetBSD.org, roy@NetBSD.org, misc-bug-people@netbsd.org,
netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, maya@NetBSD.org,
uwe@NetBSD.org
Cc:
Subject: Re: misc/51959 (/etc/rc.d/dhcpcd can't find its pid file)
Date: Sun, 3 Jun 2018 11:54:34 +0100
On 03/06/2018 08:57, maya@NetBSD.org wrote:
> Synopsis: /etc/rc.d/dhcpcd can't find its pid file
>
> Responsible-Changed-From-To: misc-bug-people->roy
> Responsible-Changed-By: maya@NetBSD.org
> Responsible-Changed-When: Sun, 03 Jun 2018 07:57:59 +0000
> Responsible-Changed-Why:
> Over to dhcpcd author, in case this is still an issue.
We just need to import dhcpcd-6-7-10 or newer and the etc/rc.d/dhcpcd
file from -current.
State-Changed-From-To: open->closed
State-Changed-By: roy@NetBSD.org
State-Changed-When: Thu, 16 Aug 2018 09:57:15 +0000
State-Changed-Why:
dhcpcd-7.0.7 and rc.d/dhcpcd have been pulled up to -7
>Unformatted:
(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.