[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pb with rotate in cf.site
From: |
Pierrick PONS |
Subject: |
Re: pb with rotate in cf.site |
Date: |
Wed, 12 Nov 2003 10:20:11 +0100 |
> On 10 Nov, Pierrick PONS wrote:
> >
> >> This is incorrect. Cfengine copies the data to a new file and
> >> truncates the current file to zero size so that writes
> >> are unaffected.
> >>
> >
> > Are you sure ?
> >
>
> I wrote it :)
>
So how can you explain this : "
then cfengine renames the file concerned by appending `.1' to it and a new,
empty file is created in its place with the same owner and permissions."
How does cfengine act when rotating ?
1- cp toto.log and >toto.log
or
2-
mv toto.log toto.log.1
touch toto.log
Thank you
Pierrick