help-cfengine
[Top][All Lists]
Advanced

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

Re: [Cfengine] Re: Delete all files after an job has finished]


From: Bas van der Vlies
Subject: Re: [Cfengine] Re: Delete all files after an job has finished]
Date: Wed, 13 Apr 2005 12:51:29 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Mark,

 I just tried version 2.1.14 and it works ;-). Thanks for fixing
the problem.

Mark Burgess wrote:
ok - I think I found it. Please test subverison version

M

On Fri, 2005-04-01 at 08:53 +0200, Bas van der Vlies wrote:

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 ;-)



____




reply via email to

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