2009/9/4 Olivier <[email protected]>:
> From an off-list comment, I think the explanation is :
> - some apps are opening and closing log files before and after each writing,
> - some are leaving log files open.
>
> When a log file is currently rotated, both apps can't append anything
> anymore to log files.
That's not correct (on a *nix system anyways). In the second case, if
some app holds a descriptor of an open file and you move the file
around in the same filesystem, nothing changes. You can rename 'log'
to 'log.1', but it doesn't change the descriptor and the application
will still write to the file (it's just named differently).
The logger restart just does a { close(); open(); } and you're logging
to a new 'log' again. This way you don't lose any messages during the
rotation.
--
Kind regards,
Stanisław Pitucha, Gradwell Voip Engineer
T: 01225 800 831 | F: 01225 800 801 | E: [email protected] | www.gradwell.com
Gradwell – Internet for Business People
Phone Services | Business Broadband | Email & Website Hosting
Can switching to VoIP today put some change in your pocket?
Registered Address: 26 Cheltenham Street, Bath, BA2 3EX, UK. Company
Number: 3673235
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users