Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Log File Rotation

by fisher (Priest)
on Nov 14, 2012 at 18:56 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found