Date: Mon, 2 Jan 2012 15:10:45 -0800 From: Garrett Cooper <yanegomi@gmail.com> To: Doug Barton <dougb@freebsd.org> Cc: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, FreeBSD current mailing list <freebsd-current@freebsd.org> Subject: Re: periodic emails Message-ID: <CAGH67wT92q0g5urq%2BsbD5TsAa0E5%2BHAMNu8=gvS%2BjqXkp8Qp0w@mail.gmail.com> In-Reply-To: <4F02390E.4080303@FreeBSD.org> References: <E4CECE08-C9BE-4CA5-842B-420A44DCF461@lists.zabbadoz.net> <CAGH67wSUuzMtS51gOV5POEmuw3Do-Kcg6H3dawpDJ39a=OSw7A@mail.gmail.com> <4F023387.1060300@FreeBSD.org> <CAGH67wQOhsqBCRSWwH%2BaUVZWXzN0X6jLZr5L1MZycPx_-Ldygg@mail.gmail.com> <4F02350D.2050500@FreeBSD.org> <C490E037-1664-4847-81EF-0A49DC089B72@lists.zabbadoz.net> <4F02390E.4080303@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 2, 2012 at 3:09 PM, Doug Barton <dougb@freebsd.org> wrote: > On 01/02/2012 15:01, Bjoern A. Zeeb wrote: >> Looking at periodic(8) it says: >> >> =A0 =A0 =A0Each script is required to exit with one of the following val= ues: >> >> =A0 =A0 =A00 =A0 =A0 The script has produced nothing notable in its outp= ut. =A0The >> =A0 =A0 =A0 =A0 =A0 =A0<basedir>_show_success variable controls the mask= ing of this out- >> =A0 =A0 =A0 =A0 =A0 =A0put. >> >> =A0 =A0 =A01 =A0 =A0 The script has produced some notable information in= its output. >> =A0 =A0 =A0 =A0 =A0 =A0The <basedir>_show_info variable controls the mas= king of this out- >> =A0 =A0 =A0 =A0 =A0 =A0put. >> >> =A0 =A0 =A02 =A0 =A0 The script has produced some warnings due to invali= d configuration >> =A0 =A0 =A0 =A0 =A0 =A0settings. =A0The <basedir>_show_badconfig variabl= e controls the mask- >> =A0 =A0 =A0 =A0 =A0 =A0ing of this output. >> >> =A0 =A0 =A0>2 =A0 =A0The script has produced output that must not be mas= ked. >> >> >> Could it even be that if setting the correct "*_show_*" config option >> could do the right thing for me already? =A0I have no clue how that "mas= king" is >> done and in which category "has not produced any output but the heading" >> would fall into and if other things would possibly be hidden as well? > > I'm not sure which problem you're trying to solve. Are you trying to > solve the problem of "scripts that are enabled but don't have any output > other than the header should not output anything at all?" =A0If so, then > yes, then *_show_success=3D"NO" is likely what you're after. > > I assumed from your OP that you were trying to solve a different > problem, but it's starting to seem like I read it wrong. Can you clarify? Looking at the scripts, there are bugs where all of the beforementioned scripts would always be mute (because rc=3D0 is explicitly set at the bottom), unless _show_success was set to YES. Thanks, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wT92q0g5urq%2BsbD5TsAa0E5%2BHAMNu8=gvS%2BjqXkp8Qp0w>