From owner-freebsd-rc@FreeBSD.ORG Mon Dec 22 15:06:42 2014 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BF3692DF for ; Mon, 22 Dec 2014 15:06:42 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A10E828 for ; Mon, 22 Dec 2014 15:06:42 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 99783B99B; Mon, 22 Dec 2014 10:06:41 -0500 (EST) From: John Baldwin To: freebsd-rc@freebsd.org Subject: Re: Why status and poll could not run with defaullt? Date: Mon, 22 Dec 2014 09:43:14 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: <201412180208.sBI28wNZ086045@kx.openedu.org> In-Reply-To: <201412180208.sBI28wNZ086045@kx.openedu.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201412220943.14267.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 22 Dec 2014 10:06:41 -0500 (EST) Cc: KIRIYAMA Kazuhiko X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 22 Dec 2014 15:06:42 -0000 On Wednesday, December 17, 2014 9:08:58 pm KIRIYAMA Kazuhiko wrote: > Hi, > > Why status and poll diectives could not run in rc.d scripts > with default? According to comment about run_rc_command > argument: > > # run_rc_command argument > # Search for argument in the list of supported commands, which is: > # "start stop restart rcvar status poll ${extra_commands}" > # If there's a match, run ${argument}_cmd or the default method > # (see below). > > status and poll directives must be run with default. Or > possibly bug in rc.subr? I put diff below just to be make > sure. > > --- /etc/rc.subr.org 2014-12-18 10:47:37.840647413 +0900 > +++ /etc/rc.subr 2014-12-18 10:50:40.645634816 +0900 > @@ -907,7 +907,7 @@ > eval _override_command=\$${name}_program > command=${_override_command:-$command} > > - _keywords="start stop restart rcvar enabled $extra_commands" > + _keywords="start stop restart rcvar status poll enabled $extra_commands" > rc_pid= > _pidcmd= > _procname=${procname:-${command}} Moving to freebsd-rc@. I'm not sure of the answer to your question, but folks on freebsd-rc@ is probably the best place to ask. -- John Baldwin