[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modifying Cron
From: |
wbmccarty |
Subject: |
Re: Modifying Cron |
Date: |
17 Dec 2004 07:01:45 -0800 |
User-agent: |
G2/0.2 |
Hi Brian and all,
I'm unsure what risk concerns you. I use the following script to manage
the system crontab:
> editfiles:
>
> { /etc/crontab
>
> AutoCreate
> BeginGroupIfNoLineMatching '.*[ /]cfexecd( *.*|$)'
> Append '0,30 * * * * /usr/sbin/cfexecd -F'
> EndGroup
> ResetSearch '1'
> LocateLineMatching '.*[ /]cfexecd( *.*|$)'
> BeginGroupIfNoMatch '^0,30 * * * * /usr/sbin/cfexecd -F$'
> ReplaceLineWith '0,30 * * * * /usr/sbin/cfexecd -F'
> EndGroup
> }
Does this script entail some risk that I haven't considered?
Cheers,
--On Friday, December 17, 2004 8:24 AM -0500 "Brian E. Seppanen"
<seppy@chartermi.net> wrote:
> Has anyone successfully been able to define a process that safely can
> modify cron using cfengine?
--
Bill McCarty