Why status and poll could not run with defaullt?

From: KIRIYAMA Kazuhiko <kiri_at_kx.openedu.org>
Date: Thu, 18 Dec 2014 11:08:58 +0900
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
_at__at_ -907,7 +907,7 _at__at_
 	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_at_OpenEdu.org
Received on Thu Dec 18 2014 - 01:24:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:54 UTC