help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using tidy + rmdirs to delete a directory and its contents


From: David E. Nelson
Subject: Re: Using tidy + rmdirs to delete a directory and its contents
Date: Mon, 24 Jan 2005 07:50:42 -0600 (CST)


Hi Josh,

Your syntax looks ok, so I'm not sure where the problem lies. There was a recent announment (last week I think) where the locking problem may have been found - I don't if it'll be fixed in 2.1.13 or not. I use the same syntax as you w/ 2.1.11 on Solaris and it works w/o any problems.

Regarding it complaining about a dir that doesn't exist, I've resorted to checking if the directory exists and setting a variable. I assure you that '/var/cfengine/stage' is a directory even though I'm using 'FileExists':

groups:

  any::

    StageDirExists = ( FileExists(/var/cfengine/stage) )

tidy:

  any.DistTime.StageDirExists::

    /var/cfengine/stage # Staging dir for file dist - need clean slate
      pattern=*
      recurse=inf
      age=0
      inform=false
      rmdirs=all


HTH,
         /\/elson





On Fri, 21 Jan 2005, Josh Smith wrote:

I still haven't heard anything back about this. Is this a bug? Is it fixed
in some snapshot? Should I just shut up and ignore it? Is there a more
appropriate list to send it to?

                                     -Josh (jbs@cacr.caltech.edu)



--
~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
                        time, then break it again.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]