From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 26 22:12:10 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8AD92B99 for ; Mon, 26 Aug 2013 22:12:10 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from rush.bluerosetech.com (rush.bluerosetech.com [IPv6:2607:fc50:1000:9b00::25]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5E3BB24B2 for ; Mon, 26 Aug 2013 22:12:10 +0000 (UTC) Received: from chombo.houseloki.net (c-76-27-220-79.hsd1.wa.comcast.net [76.27.220.79]) by rush.bluerosetech.com (Postfix) with ESMTPSA id 0E8691141D for ; Mon, 26 Aug 2013 15:12:09 -0700 (PDT) Received: from [192.168.1.102] (static-71-242-248-73.phlapa.east.verizon.net [71.242.248.73]) by chombo.houseloki.net (Postfix) with ESMTPSA id 2A894E9A for ; Mon, 26 Aug 2013 15:11:07 -0700 (PDT) Message-ID: <521BD278.80007@bluerosetech.com> Date: Mon, 26 Aug 2013 18:11:04 -0400 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: FreeBSD Hackers Subject: Re: weekly periodic security status References: <20130822204958.GC24767@caravan.chchile.org> <5217AD9E.1000100@bluerosetech.com> <20130824165704.GD24767@caravan.chchile.org> <20130825110520.GJ24767@caravan.chchile.org> <521A34A2.303@bluerosetech.com> <20130825173715.GK24767@caravan.chchile.org> <521B826A.6020402@bluerosetech.com> <20130826210906.GO24767@caravan.chchile.org> In-Reply-To: <20130826210906.GO24767@caravan.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 22:12:10 -0000 On 8/26/2013 5:09 PM, Jeremie Le Hen wrote: > On Mon, Aug 26, 2013 at 12:29:30PM -0400, Darren Pilgrim wrote: >> 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. As I understand the framework, I can only set the enable to "NO", "daily", "weekly" or "monthly". Periodic will only run it one of the periods. How would I set it to run in all three? How would I set to run in only two of the three periods? It seems like you could add this functionality by adding stars to each end of the case patterns in check_yesno_period.