Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2013 23:09:06 +0200
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        Darren Pilgrim <list_freebsd@bluerosetech.com>
Cc:        Jeremie Le Hen <jlh@FreeBSD.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: weekly periodic security status
Message-ID:  <20130826210906.GO24767@caravan.chchile.org>
In-Reply-To: <521B826A.6020402@bluerosetech.com>
References:  <20130822204958.GC24767@caravan.chchile.org> <5217AD9E.1000100@bluerosetech.com> <CA%2BE3k910-BqOdDtA9sWTxVuKxtJSS02w4PSeTmM%2BJxPqNQ5Jyw@mail.gmail.com> <20130824165704.GD24767@caravan.chchile.org> <20130825110520.GJ24767@caravan.chchile.org> <521A34A2.303@bluerosetech.com> <20130825173715.GK24767@caravan.chchile.org> <521B826A.6020402@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Darren

On Mon, Aug 26, 2013 at 12:29:30PM -0400, Darren Pilgrim wrote:
> >> On 8/25/2013 7:05 AM, Jeremie Le Hen wrote:
> >>> And the following variables to control whether you want each check to
> >>> run "daily", "weekly" or directly from "crontab" (the default, backward
> >>> compatible values are shown):
> >>
> >> What do we do if we want to run a check both daily and weekly?
> >
> > I really don't see the point of running some checks weekly when you do
> > daily.  Do you have a particular example in mind?
> 
> On one set of systems, I have a log analyser run as a periodic script. 
>   On a daily run, it grabs and filters logs into a database.  On weekly 
> runs, it does some statistical analysis of the filtered logs in the 
> database.  On monthly runs, it does a larger set of stats and a bit of 
> housekeeping.  The script lives in /usr/local/libexec and is hardlinked 
> into the /usr/local/etc/periodic/ subtree and cases out the value of $0.
> 
> The new framework would let me rely on the environment instead of $0, 
> which, IMO, is more reliable.  I'd need to be able to tell periodic to 
> run that script with the daily, weekly and monthly security runs, though.

If I understand what you say correctly, this should continue to work.

-- 
Jeremie Le Hen

Scientists say the world is made up of Protons, Neutrons and Electrons.
They forgot to mention Morons.



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