From: Kenn Humborg (kenn at domain linux.ie)
Date: Sun 09 Jul 2000 - 16:32:46 IST
On Sun, Jul 09, 2000 at 04:19:53PM +0100, kevin lyda wrote:
> DO NOT USE cp WITH LOG FILES. ONLY use mv, only use it on the same
> partition and then touch the new log files. better still there exist
> log rotation programs that you should use instead. some services
> might need a HUP signal (kill -1) to restart logging.
> again, look at log rotation programs. using cp on a log file can lose
> some of your logs.
Now, now, Kevin, no need to be so alarmist...
Folks, using cp to make a copy of your logs is fine. Using cp to
_write_ _to_ a log file is dangerous, silly and a stupid thing to
do anyway. I can't think of any good reason why you'd be putting
a log file as the dest of a cp command.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:49 GMT