From owner-freebsd-ports@FreeBSD.ORG Thu Jun 2 17:20:50 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0E0016A41C for ; Thu, 2 Jun 2005 17:20:50 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80C0143D49 for ; Thu, 2 Jun 2005 17:20:50 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so398999wri for ; Thu, 02 Jun 2005 10:20:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JuMohFG3qkYCZ/lX7ttAU1eM8l33tHoADiVC0BQMqILS1BESz4SPPgL4TnV+5v2KT+81XlfhVZwn7X+gXprf8khkNjm0xVOE4MEVb+Bg0TrQbzaq3cb8DlRrLchI1UjczyHCUneWd4e4ePA3XipKU9QPt1j2ObnrVeDOyZeVNYo= Received: by 10.54.61.19 with SMTP id j19mr685735wra; Thu, 02 Jun 2005 10:20:40 -0700 (PDT) Received: by 10.54.29.77 with HTTP; Thu, 2 Jun 2005 10:20:40 -0700 (PDT) Message-ID: <790a9fff050602102075cd3f25@mail.gmail.com> Date: Thu, 2 Jun 2005 12:20:40 -0500 From: Scot Hetzel To: Simon Barner In-Reply-To: <20050601131216.GL63323@zi025.glhnet.mhn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050601131216.GL63323@zi025.glhnet.mhn.de> Cc: ports@freebsd.org, bob frazier Subject: Re: ports/74615, deinstall target to stop daemon. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Scot Hetzel List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 17:20:51 -0000 On 6/1/05, Simon Barner wrote: > Hi, >=20 > what do you think about this deinstall target? It works, but isn't it a > bit much bloat? >=20 > Otherwise, I have this port ready to commit. >=20 I would get rid of the deinstall target completely. You should add the following to shutdown the quoted daemon in the pkg-plist on deinstall: @unexec %D/etc/rc.d/quoted.sh stop 2>/dev/null || true etc/rc.d/quoted.sh If your script is compatible with the rc_NG system, then the stop should be a forcestop. Also, if your script fails to remove the *.pid file you may need to fix it, or convert it to the rc_NG format for rc.d scripts. Scot Scot