On 12/07/2011 09:14 PM, nozawat wrote:
> Hi Andrew
>
>> Right, but the location and its deletion date back over 8 years IIRC.
> I seem to delete it in the following.
> ->http://hg.linux-ha.org/heartbeat-STABLE_3_0/file/7e3a82377fa8/heartbeat/heartbeat.c
> ------
>     991       if (system("rm -fr " RSC_TMPDIR) != 0) {
>     992               cl_log(LOG_INFO, "Removing %s failed, recreating.", 
> RSC_TMPDIR);
>     993       }
> ------
>
> Regards,
> Tomo

For what it's worth - this directory was added with the sole purpose of 
being a place to put files that would automatically be deleted when 
heartbeat started.  It has been that way from the first day it was 
created.  Andrew has this right (it was probably actually even longer 
than 8 years ago).  I created it for pseudo-resources - things like 
MailTo that need to track their state so they can follow normal resource 
agent expectations.  For that purpose, this behavior is right.  You 
certainly don't want a machine to reboot and think that these 
pseudo-resources are still running.

If you don't like that behavior, then put your status files somewhere 
else...


-- 
     Alan Robertson<al...@unix.sh>  - @OSSAlanR

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to