NetBSD Problem Report #48867

From www@NetBSD.org  Wed Jun  4 15:03:46 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9CA39A653E
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  4 Jun 2014 15:03:46 +0000 (UTC)
Message-Id: <20140604150330.B2243A65F2@mollari.NetBSD.org>
Date: Wed,  4 Jun 2014 15:03:30 +0000 (UTC)
From: 6bone@6bone.informatik.uni-leipzig.de
Reply-To: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Subject: bad rc script for isc-dhcrelay
X-Send-Pr-Version: www-1.0

>Number:         48867
>Category:       pkg
>Synopsis:       bad rc script for isc-dhcrelay
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 04 15:05:00 +0000 2014
>Last-Modified:  Tue Jun 17 05:20:00 +0000 2014
>Originator:     Uwe Toenjes
>Release:        pkgsrc-current
>Organization:
University of Leipzig
>Environment:
NetBSD augate.ipv6.uni-leipzig.de 6.99.40 NetBSD 6.99.40 (MYCONF7)
>Description:
/etc/rc.d/isc_dhcrelay stop reports:

isc_dhcrelay not running? (check /var/run/isc-dhcp/isc-dhcrelay.pid).


I am using the default installation with the following flags in the rc.conf:

isc_dhcrelay=YES
isc_dhcrelay_flags="-6 -l vlan39 -l vlan68 -l vlan422 -l vlan423 -l vlan918 -l vlan927 -u ixg0"

>How-To-Repeat:
Install isc-dhcrelay, set the flags at your rc.conf and use the default rc-script to start and stop the deamon.

the script try to read "/var/run/isc-dhcp/isc-dhcrelay.pid", but the file is named "/var/run/isc-dhcp/isc-dhcrelay6.pid"
>Fix:

>Audit-Trail:
From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48867: bad rc script for isc-dhcrelay
Date: Fri, 13 Jun 2014 08:39:33 +0900

 On Thu, 05 Jun 2014 00:05:00 +0900, <6bone@6bone.informatik.uni-leipzig.de> wrote:

 > I am using the default installation with the following flags in the rc.conf:
 >
 > isc_dhcrelay=YES
 > isc_dhcrelay_flags="-6 -l vlan39 -l vlan68 -l vlan422 -l vlan423 -l vlan918 -l vlan927 -u ixg0"
 >
 >> How-To-Repeat:
 > Install isc-dhcrelay, set the flags at your rc.conf and use the default rc-script to start and stop the deamon.
 >
 > the script try to read "/var/run/isc-dhcp/isc-dhcrelay.pid", but the file is named "/var/run/isc-dhcp/isc-dhcrelay6.pid"

  From rc files in isc-dhcpd4 package, I guesses that "-6" flag will change pid file name.
 Should we provide IPv6 version startup script, same as isc-dhcp4d?

 -- 
 OBATA Akio / obata@lins.jp

From: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/48867: bad rc script for isc-dhcrelay
Date: Tue, 17 Jun 2014 07:19:39 +0200 (CEST)

 On Thu, 12 Jun 2014, OBATA Akio wrote:

 >  From rc files in isc-dhcpd4 package, I guesses that "-6" flag will change pid file name.
 > Should we provide IPv6 version startup script, same as isc-dhcp4d?

 I think this solves the promlem.


 Regards
 Uwe

NetBSD Home
NetBSD PR Database Search

(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.