Differences between version 3 and previous revision of LogRotateNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Wednesday, September 10, 2003 11:54:06 pm | by CraigBox | Revert |
Older page: | version 2 | Last edited on Monday, September 23, 2002 6:32:07 pm | by CraigBox | Revert |
@@ -22,4 +22,7 @@
This is under DebianLinux. YourMileageMayVary under RedHat but it should be similar.
Oh, and this is all assuming that you are using syslog(3) to do your logging. If /var/log/logfilename is manually opened by whatever app you are using,
I dont know how logrotate will handle it, if at all. you may need to use the postrotate keyword in your logrotate file to trigger a -HUP to your app, or even restart it (icky).
+
+---
+If you do not specify a value for the rotate parameter it defaults to 0 (ie. it doesn't rotate any logs, just deletes the old one straight away)