A truly simple and elegant solution!  I never would have thought to have
crontab load the original (yet modified) crontab on top of itself.  I would
have put it into a temp file and loaded that, but your solution is much
easier (the way most good Unix solutions are).

Cheers,
Luke

-----Original Message-----
From: Dmitry Sazonov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 10:01 PM
To: help-cfengine@gnu.org
Cc: Luke Youngblood
Subject: Re: Solaris BSM auditing with editfiles

On Wednesday 04 May 2005 02:50 pm, Luke Youngblood wrote:
> Consider the following section of code:
> 
>  
control:
         AddInstallable  = ( reload_crontab )
> 
> editfiles:
>  
>   { /var/spool/cron/crontabs/root
>  
>   AutoCreate
>   DeleteLinesContaining "cfwrap"
>   AppendIfNoSuchLine "0,30 * * * * /usr/local/sbin/cfexecd -F"
     DefineClasses "reload_crontab"
>   }
> 
>  
shellcommands:
  reload_crontab::
    "/usr/bin/crontab /var/spool/cron/crontabs/root"
 



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to