From owner-freebsd-current@FreeBSD.ORG Thu Dec 18 02:24:25 2014 Return-Path: Delivered-To: freebsd-current@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 BF4C8718 for ; Thu, 18 Dec 2014 02:24:25 +0000 (UTC) Received: from kx.openedu.org (96.247.3.110.ap.yournet.ne.jp [110.3.247.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7113A826 for ; Thu, 18 Dec 2014 02:24:23 +0000 (UTC) Received: from kiri.pis.kx.openedu.org (kiri.pis [192.168.1.1] (may be forged)) by kx.openedu.org (8.14.5/8.14.5) with ESMTP id sBI28wNZ086045 for ; Thu, 18 Dec 2014 11:08:59 +0900 (JST) (envelope-from kiri@kx.openedu.org) Message-Id: <201412180208.sBI28wNZ086045@kx.openedu.org> Date: Thu, 18 Dec 2014 11:08:58 +0900 From: KIRIYAMA Kazuhiko To: freebsd-current@freebsd.org Subject: Why status and poll could not run with defaullt? User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 22) (Instant Classic) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 02:24:25 -0000 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}} --- Kazuhiko Kiriyama kiri@OpenEdu.org