Mark Burgess wrote:
What does -d2 say?
Tidying from base directory /scratch
ExpandVarstring(/scratch)
ExpandWildCardsAndDo(/scratch=/scratch)
ExpandWildCardsAndDo(=)
TidyWrapper(/scratch)
Registering root device as 2065
RecursiveTidySpecialArea(/scratch)
Changed directory to /scratch
Checking the inode and device to make sure we are where we think we are...
IgnoredOrExcluded(/scratch)
IgnoreFile(/scratch,)
Tidy: opening dir /scratch
Filename /scratch/. is classified as ignorable
Filename /scratch/.. is classified as ignorable
IgnoreFile(/scratch,bas_link)
Checking tidy topmost directory /scratch
End PATHTIDY:
The problem is that the link only will be deleted if link has the same
owner as the user that runs cfagent. I think we must make an execption
in case root is running cfagent or add an extra option to tidy that
prevents this owner check.
M
On Thu, 2005-03-31 at 12:53 +0200, Bas van der Vlies wrote:
Maybe i am doing something wrong or someone else has an answer for me.
I am using cfengine version 2.1.13
After an job has finished i want to to delete all the files in /scratch
with the following config:
============================================
control:
actionsequence = ( tidy )
tidy:
/scratch
pattern=* age=0 recurse=inf rmdirs=sub
dirlinks=tidy links=tidy
============================================
This will delete nearly everthing exepct links to existent directories, eg:
/scratch/bas_link -----> /home/sara/bas
Is this an bug or does somebody else an solution? Files actionsequence
would not work because it is an link to existent directory.
I know 'rmdirs' overrides the 'dirlinks' option but i want an option
that deletes everything als dirlinks ;-)