bug-cfengine
[Top][All Lists]
Advanced

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

[CFENGINE] tidy circular links?


From: Andreas Boschke
Subject: [CFENGINE] tidy circular links?
Date: 08 Nov 2002 18:06:37 -0800

Hi:

I was trying to tidy my labs' /tmp directory and came up with the
following type error: 

 cfengine:calvin: Non-empty directory /tmp/Directory, skipping..

It turns out the directory contained a circular symbolic link, for
example: 

 /tmp/Directory:
 total 0
 lrwxrwxrwx    1 root     wheel          12 Nov  8 17:42 CircularLink ->
CircularLink

I just want to remove the /tmp/Directory and its entire contents.

Below is an example cfengine script which demonstrates the above
problem:

Thanks for any help,

-Andreas Boschke
-andreas @ cs.ucsb.edu

=
<<<script>>>
##############################################
# 
#  cfagent.conf
#
#  Demonstrates problem with 'tidying' circular links' 
#
##############################################

control:

        actionsequence = ( tidy )

tidy:

        /tmp    pat=*       recurse=inf   age=0 rmdirs=true dirlinks=delete
links=tidy

# END cfagent.conf
#
###

<<<output snippets>>>
% ./cfagent -qKvf cfagent.conf 

GNU Configuration Engine - 
2.0.5pre
Free Software Foundation 1994-2001
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, 0254 Oslo, Norway

------------------------------------------------------------------------

Host name is: calvin
Operating System Type is linux
Operating System Release is 2.4.18-10smp
Architecture = i686

---------------------------------------------------------------------
Tidying by directory
---------------------------------------------------------------------

Directory /tmpj
cfengine:calvin: Non-empty directory /tmp/Directory, skipping..
cfengine:calvin: Non-empty directory /tmp, skipping..
No home patterns to search

=





reply via email to

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