Date: Mon, 22 Dec 2014 09:43:14 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-rc@freebsd.org Cc: KIRIYAMA Kazuhiko <kiri@kx.openedu.org> Subject: Re: Why status and poll could not run with defaullt? Message-ID: <201412220943.14267.jhb@freebsd.org> In-Reply-To: <201412180208.sBI28wNZ086045@kx.openedu.org> References: <201412180208.sBI28wNZ086045@kx.openedu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412220943.14267.jhb>