| PLEX86 | ||
|
Logrotate is a pain 3731Well, everyone else can. So you have a sight or hearing problem. What does "man logrotate" tel you? In what way is it not helpful?
Well, you can't, since apache does its own backup-rotate. You will have to turn that off first.
No, it does NOT "run fine". Apache needs to be signalled to tell it to close the old log. That's why it normally is responsible for doing its own rotate. Well, that's what apache does too. That's what every lgging program would do and does do, including syslog. That's why you, in the logrotate script, would signal that logging program to tell it to close and reopn the log. You might even restart the program. That's right. So why don't you stop it? That's what it is supposd to do. You can't. Don't be silly! What do you have? A mental problem? A hole in the head? SOme kind of neurone deficiency? Fix your application! Tell logrotate to signal or restart it. Tell your application to close and reopen the log file on signal or restart. Fin. Problem? Where?
Amen. Amen. By the same mechanism - signalling it, or restarting it. There is no advantage.
Fine, but it's not worth it if the programmer has such a mental problem. Fix the programmer. Amen. Amen. Idiot. One written by an idiot. One written by a person who seems not to undrstand what he is doing, what he should be doing, etc. Logrotate is a pain 3732 From the apache docs......... periodically rotate the log files by moving or deleting the existing logs. This cannot be done while the server is...
Then open your eyes buvver. You have a problem. The problem is nothing to do with logrotate, but with YOUR understanding of the way logging works, how open and close and mv of files works, what programs are supposed to do when signalled, what syslog does, etc. Logrtate is right. Read your logrotate.conf file. It's full of needy examples. Peter
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||