From owner-freebsd-rc@freebsd.org Tue Nov 3 23:35:20 2015 Return-Path: Delivered-To: freebsd-rc@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 A30F9A25E9B for ; Tue, 3 Nov 2015 23:35:20 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [217.115.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E76E61DDF for ; Tue, 3 Nov 2015 23:35:18 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: (qmail 81100 invoked from network); 3 Nov 2015 23:35:15 -0000 Received: from elektropost.org (HELO elektropost.org) (erdgeist@erdgeist.org) by elektropost.org with ESMTPS (DHE-RSA-AES128-SHA encrypted); 3 Nov 2015 23:35:15 -0000 Subject: Re: etc/rc.subr rc_pid for start_cmd To: Jilles Tjoelker References: <563933AB.5090407@erdgeist.org> <20151103231310.GA70094@stack.nl> Cc: freebsd-rc@FreeBSD.org From: Dirk Engling Message-ID: <563944B3.5030604@erdgeist.org> Date: Wed, 4 Nov 2015 00:35:15 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151103231310.GA70094@stack.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 23:35:20 -0000 > The original idea was to skip the "already running" checks while booting > the system since they are quite slow, and to perform them when a manual > service FOO start is done. Isn't this what the -z "$rc_fast" is for? >> if [ $rc_arg = "start" -a -z "$rc_fast" -a -n "$rc_pid" ]; then >> if [ -z "$rc_quiet" ]; then erdgeist