From owner-freebsd-ports@freebsd.org Sat Sep 12 11:28:05 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38ECCA02DCA for ; Sat, 12 Sep 2015 11:28:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1779914CD for ; Sat, 12 Sep 2015 11:28:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 144C1A02DC9; Sat, 12 Sep 2015 11:28:05 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13E8CA02DC8 for ; Sat, 12 Sep 2015 11:28:05 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A6FFC14CB for ; Sat, 12 Sep 2015 11:28:04 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by wiclk2 with SMTP id lk2so83327584wic.1 for ; Sat, 12 Sep 2015 04:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=8xSAZybEI4xZ59g8JOzsGDUqVEGc951WD8WFSHm5kzA=; b=iqp6xeTu/2dAT1ScuGSQw/uiavJB4y1eZ45CMFGSnVTy7snuLz5AKFzmqmYM2uhH1E 2VleqAjCqQvTa3nT857VeyD99VS7b6newDIivVMhy7A/d1vvscQh2cbkJgZOPDro1qFI r3OwSV/VQjB1B1y7NrWzBRUcj+33h07n2q96zU2fjojXkGLe2b+yzaw1skppxC0AChjl ALM1f4OwBpJjAYECJSr1CsAg36ccothuHZF0vyNaiNnaga67ONwsBwpsiA0Ne7jD/aeT dYkWg/Dcn6TaH2IbFkbs0ZLG5OJSlnrtJfKm8pAHkh8voi951q89LOBPFK+yenHsX6RI czzg== X-Received: by 10.180.104.40 with SMTP id gb8mr5673639wib.17.1442057283107; Sat, 12 Sep 2015 04:28:03 -0700 (PDT) Received: from gumby.homeunix.com ([90.195.198.255]) by smtp.gmail.com with ESMTPSA id uo6sm5095979wjc.1.2015.09.12.04.28.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Sep 2015 04:28:01 -0700 (PDT) Date: Sat, 12 Sep 2015 12:27:59 +0100 From: RW To: ports@freebsd.org Subject: Re: rc script problem - pidfile not being recognised Message-ID: <20150912122759.412ea139@gumby.homeunix.com> In-Reply-To: <55F367CF.2080507@sorbs.net> References: <20150911161850.402b3d5a@gumby.homeunix.com> <853047065.182.1441986957380.JavaMail.Kevin@Thoth> <20150911171930.59e67cc2@gumby.homeunix.com> <0NUI007RMV24EUD0@hades.sorbs.net> <55F367CF.2080507@sorbs.net> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2015 11:28:05 -0000 On Sat, 12 Sep 2015 01:46:23 +0200 Michelle Sullivan wrote: > Roger Marquis wrote: > > RW via freebsd-ports wrote: > >> It needs both. It won't use just the pid file because the pid > >> might have been reassigned to another process if the original > >> daemon died without deleting its pid file. > > > > Why would this rc script *require* a command_interpreter variable > > to use the pidfile variable? I'm curious because this violates > > KIS, the principle of least surprise and few rc scripts seem to > > have this variable defined. > > > > Using command_interpreter is good to be sure, for for the reason > > listed, but rc scripts should not fail if it is undefined. > > +1 to that. You'd rather an rc script fails at run-time and shuts down the wrong daemon than fail when the script is being developed?