Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 11:46:22 -0400
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        Sergey Kandaurov <pluknet@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Daily, weekly, security scripts....
Message-ID:  <20120524154622.GA92444@in-addr.com>
In-Reply-To: <4FBE37CD.9040907@digiware.nl>
References:  <4FBDE81C.9010909@digiware.nl> <CAE-mSOKJfd1nnu7Gvyk2=9T%2BD-dc6PdURbg93sq1xuiRDvGF%2BA@mail.gmail.com> <4FBE37CD.9040907@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 24, 2012 at 03:29:49PM +0200, Willem Jan Withagen wrote:
> On 2012-05-24 14:01, Sergey Kandaurov wrote:
> > On 24 May 2012 11:49, Willem Jan Withagen <wjw@digiware.nl> wrote:
> >> [I looked for a better list to drop this on, but other that freebsd-rc
> >> nothing seems close.]
> >>
> >> Hi,
> >>
> >> I nagged about the verbosity of the periodic scripts.
> >> But did not give any example.
> 
> [example stripped]
> 
> >> This would call for something like $periodic_quiet??
> >> and then generating the headers only if there was something to report.
> 
> 
> > Hi,
> > you could try to start with:
> > 
> > security_show_success="NO"
> > daily_show_success="NO"
> 
> I looked in some of the security scripts and that variable is not used
> in the ones I looked into.
> 
> But perhaps in script/tools that does the overall calling of the
> /etc/periodic/security/* scripts.

Its handled in /usr/sbin/periodic

    success=YES info=YES badconfig=NO empty_output=YES  # Defaults when ${run}_* aren't YES/NO
    for var in success info badconfig empty_output
    do
        case $(eval echo "\$${arg##*/}_show_$var") in
        [Yy][Ee][Ss]) eval $var=YES;;
        [Nn][Oo])     eval $var=NO;;
        esac
    done

Regards,

Gary



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120524154622.GA92444>