help-cfengine
[Top][All Lists]
Advanced

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

SOLVED: Disable deletes the file [again]


From: Harry Hoffman
Subject: SOLVED: Disable deletes the file [again]
Date: Wed, 19 Jan 2005 16:56:05 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Hi Eric,

Thanks very much for the help... I'm sorry to report (well, sorry that I was being stupid) that it was a typo that was catching me out...

Even though cfagent reported that it was moving the file to /etc/hosts.equiv.testing it seems to have taken precedence for
the value of the Repository (/var/spool/cfengine).

Unfortunately, I had a typo specifying that a tidy should take place in /var/spool/cfengine for everything older then age=0 (it should have been age=10).

The files were getting deleted before I ever saw them in the Repository.

Should the Repository setting override a dest in disable?


Thanks again,
Harry



Eric Sorenson wrote:
On Wed, 19 Jan 2005, Harry Hoffman wrote:


After running cfengine I get a syslog message and an email. They reported that
/etc/hosts.equiv has been disabled by renaming it to:
cf:install: Disabling/renaming file /etc/hosts.equiv to
/etc/hosts.equiv.cfdisabled

However, upon inspection of the /etc directory neither /etc/hosts.equiv or
/etc/hosts.equiv.cfdisabled exists



There may be a bug, but this run did not expose it. No disable actions
were taken due to IfElapsed being active (too soon after the last run)

Actionsequence item disable
GetLock(disable,_etc_hosts_equiv,time=1106157803), ExpireAfter=240, IfElapsed=15
GetLastLock()
cf:install: Nothing scheduled for disable.disable (3/15 minutes elapsed)
GetLock(disable,_etc_shosts_equiv,time=1106157803), ExpireAfter=240, 
IfElapsed=15
GetLastLock()
cf:install: Nothing scheduled for disable.disable (3/15 minutes elapsed)
GetLock(disable,_root__rhosts,time=1106157803), ExpireAfter=240, IfElapsed=15
GetLastLock()
cf:install: Nothing scheduled for disable.disable (3/15 minutes elapsed)
GetLock(disable,_root__shosts,time=1106157803), ExpireAfter=240, IfElapsed=15
GetLastLock()
cf:install: Nothing scheduled for disable.disable (3/15 minutes elapsed)
GetLock(disable,_root__ssh_authorized_keys,time=1106157803), ExpireAfter=240, 
IfElapsed=15
GetLastLock()
cf:install: Nothing scheduled for disable.disable (3/15 minutes elapsed)
GetLock(disable,_root__ssh_authorized_keys2,time=1106157803), ExpireAfter=240, 
IfElapsed=15
GetLastLock()
cf:install: Nothing scheduled for disable.disable (3/15 minutes elapsed)
Job start time set to Wed Jan 19 13:03:23 2005

Can you turn off any cfexecd/cron jobs, let the system quiesce for abit, and
repeat your experiment? Just run it with '-v', the '-d2' output is superfluous.





reply via email to

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