From owner-freebsd-current@FreeBSD.ORG Mon Jan 2 23:10:46 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8678C1065690; Mon, 2 Jan 2012 23:10:46 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3A17F8FC18; Mon, 2 Jan 2012 23:10:46 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so18041435obb.13 for ; Mon, 02 Jan 2012 15:10:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=BhbHyazb6TIYE8czVx03iFK9prk0zvnQ4R+QsQOAlgw=; b=htC7BgSeFuGsh8zwqzJzBiAKcp/o1SABbHBk3oXbW/uXGdTUQIxMsX6eBJlUZ1XdT1 /JYA2bjjiUrDwlvQDME/VuwDW6RfVdUFrsT4cICwu50cRqEB3srAuikFkcDLdW4sUV3Z 9QHX24CIaM+/7VJ9bMIMlUjYBd1im4rvyCSlg= MIME-Version: 1.0 Received: by 10.182.187.37 with SMTP id fp5mr17988195obc.21.1325545845749; Mon, 02 Jan 2012 15:10:45 -0800 (PST) Received: by 10.182.152.6 with HTTP; Mon, 2 Jan 2012 15:10:45 -0800 (PST) In-Reply-To: <4F02390E.4080303@FreeBSD.org> References: <4F023387.1060300@FreeBSD.org> <4F02350D.2050500@FreeBSD.org> <4F02390E.4080303@FreeBSD.org> Date: Mon, 2 Jan 2012 15:10:45 -0800 Message-ID: From: Garrett Cooper To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "Bjoern A. Zeeb" , FreeBSD current mailing list Subject: Re: periodic emails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 02 Jan 2012 23:10:46 -0000 On Mon, Jan 2, 2012 at 3:09 PM, Doug Barton 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_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 _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 _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