NetBSD Problem Report #43490
From tsutsui@ceres.dti.ne.jp Sun Jun 20 07:16:24 2010
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 8D6C563BA47
for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Jun 2010 07:16:24 +0000 (UTC)
Message-Id: <201006200716.o5K7GLmk000950@mirage.ceres.dti.ne.jp>
Date: Sun, 20 Jun 2010 16:16:21 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: etc/rc.d/dhcpcd doesn't check pid file correctly
X-Send-Pr-Version: 3.95
>Number: 43490
>Category: bin
>Synopsis: /etc/rc.d/dhcpcd doesn't check pid file properly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 20 07:20:00 +0000 2010
>Closed-Date: Sat Oct 05 11:32:29 +0000 2013
>Last-Modified: Sat Oct 05 11:32:29 +0000 2013
>Originator: Izumi Tsutsui
>Release: NetBSD 5.99.30
>Organization:
>Environment:
System: NetBSD 5.99.30 NetBSD 5.99.30 (WZERO3) #0: \
Sun Jun 13 17:08:35 JST 2010 \
tsutsui@mirage:/usr/obj.hpcarm/sys/arch/hpcarm/compile/WZERO3 hpcarm
Architecture: arm
Machine: hpcarm
>Description:
It looks /etc/rc.d/dhcpcd checks pid file in /var/run/dhcpcd.pid,
but dhcpcd(8) actually creates /var/run/dhcpcd-[interface].pid
if [interface] is specified, so /etc/rc.d/dhcpcd script complains
"dhcpcd not running?" on commands stop or restart etc.
>How-To-Repeat:
start dhcpcd(8) with the following rc.conf line:
dhcpcd=YES dhcpcd_flags="-q axe0"
>Fix:
- check proper pid file name with interface name?
- explicitly specify pid file name on start?
---
Izumi Tsutsui
>Release-Note:
>Audit-Trail:
From: "Roy Marples" <roy@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43490 CVS commit: src/etc/rc.d
Date: Tue, 25 Jun 2013 13:02:53 +0000
Module Name: src
Committed By: roy
Date: Tue Jun 25 13:02:53 UTC 2013
Modified Files:
src/etc/rc.d: dhcpcd
Log Message:
Add a hack to fix the dhcpcd rc.d script to work with a single
interface specified in dhcpcd_flags in rc.conf(5).
Fixes PR bin/43490
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/etc/rc.d/dhcpcd
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: roy@NetBSD.org
State-Changed-When: Sat, 05 Oct 2013 11:32:29 +0000
State-Changed-Why:
Fixed
>Unformatted:
(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.