From owner-freebsd-ports@freebsd.org Sat Sep 12 15:02:12 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 CEF5FA02F99 for ; Sat, 12 Sep 2015 15:02:12 +0000 (UTC) (envelope-from marquis@roble.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 BB0231807 for ; Sat, 12 Sep 2015 15:02:12 +0000 (UTC) (envelope-from marquis@roble.com) Received: by mailman.ysv.freebsd.org (Postfix) id BA19DA02F97; Sat, 12 Sep 2015 15:02:12 +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 B9AB0A02F95 for ; Sat, 12 Sep 2015 15:02:12 +0000 (UTC) (envelope-from marquis@roble.com) Received: from mx5.roble.com (mx5.roble.com [206.40.34.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx5.roble.com", Issuer "mx5.roble.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AA9AB1806 for ; Sat, 12 Sep 2015 15:02:12 +0000 (UTC) (envelope-from marquis@roble.com) Date: Sat, 12 Sep 2015 08:02:11 -0700 (PDT) From: Roger Marquis To: RW cc: ports@freebsd.org Subject: Re: rc script problem - pidfile not being recognised In-Reply-To: <20150912122759.412ea139@gumby.homeunix.com> 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> <20150912122759.412ea139@gumby.homeunix.com> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 15:02:12 -0000 RW via freebsd-ports wrote: > You'd rather an rc script fails at run-time and shuts down the wrong > daemon than fail when the script is being developed? It's not so much where the script fails than that it fails in the first place. Neither a pidfile nor a command_interpreter needs to be required for an rc scripts to work. These are nice features but making them mandatory is at best a sort of premature optimization. The freebsd rc script environment is already far too OS-specific and un-editable, often containing no readable shell code at all. What if your interpreter changes from say python2.7 to python for example? Does that mean you have to reinstall all the associated packages or edit their rc scripts? Neither shouldn you have to parse who knows how many hundred of lines of shell code included by /etc/rc.subr or rewrite an rc script from scratch to make a simple change. We appreciate the features this subsystem provides and the work devs have put into it but not when it's made mandatory. The value of KIS needs to be emphasized here. IMO, Roger Marquis