Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Log File Rotation

by fisher (Priest)
on Nov 14, 2012 at 18:56 UTC ( #1003874=note: print w/ replies, xml ) Need Help??


in reply to Log File Rotation

The common approach to this problem is to

  1. rename log-file. Like mv file.log file.log.1. The process which holds the old file descriptor open will write to renamed file from this point.
  2. touch new log file. touch file.log or otherwise create it.
  3. inform the process. For example, send it SIGHUP or even restart it.
It is not related to perl, I believe.


Comment on Re: Log File Rotation
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2014-10-01 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (31 votes), past polls