From owner-freebsd-ports@freebsd.org Fri Sep 11 23:46:26 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 E8F8CA02A35 for ; Fri, 11 Sep 2015 23:46:26 +0000 (UTC) (envelope-from michelle@sorbs.net) 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 D20D1162A for ; Fri, 11 Sep 2015 23:46:26 +0000 (UTC) (envelope-from michelle@sorbs.net) Received: by mailman.ysv.freebsd.org (Postfix) id CFE70A02A34; Fri, 11 Sep 2015 23:46:26 +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 CF7BBA02A33 for ; Fri, 11 Sep 2015 23:46:26 +0000 (UTC) (envelope-from michelle@sorbs.net) Received: from hades.sorbs.net (mail.sorbs.net [67.231.146.200]) by mx1.freebsd.org (Postfix) with ESMTP id BF33C1629 for ; Fri, 11 Sep 2015 23:46:25 +0000 (UTC) (envelope-from michelle@sorbs.net) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from isux.com (firewall.isux.com [213.165.190.213]) by hades.sorbs.net (Oracle Communications Messaging Server 7.0.5.29.0 64bit (built Jul 9 2013)) with ESMTPSA id <0NUJ00A22EBR3N00@hades.sorbs.net> for ports@freebsd.org; Fri, 11 Sep 2015 16:52:40 -0700 (PDT) Message-id: <55F367CF.2080507@sorbs.net> Date: Sat, 12 Sep 2015 01:46:23 +0200 From: Michelle Sullivan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.24) Gecko/20100301 SeaMonkey/1.1.19 To: Roger Marquis Cc: ports@freebsd.org Subject: Re: rc script problem - pidfile not being recognised References: <20150911161850.402b3d5a@gumby.homeunix.com> <853047065.182.1441986957380.JavaMail.Kevin@Thoth> <20150911171930.59e67cc2@gumby.homeunix.com> <0NUI007RMV24EUD0@hades.sorbs.net> In-reply-to: <0NUI007RMV24EUD0@hades.sorbs.net> 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: Fri, 11 Sep 2015 23:46:27 -0000 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. -- Michelle Sullivan http://www.mhix.org/