diff options
author | Stefan Fritsch <sf@apache.org> | 2011-06-22 23:34:41 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-06-22 23:34:41 +0200 |
commit | d7f847eabf14bfaba9df373af8e28abfb60de9f5 (patch) | |
tree | 64eca5364f3d1a1429dc8a6bf3071fb1e26e4cfc /docs/man | |
parent | Update transforms (diff) | |
download | apache2-d7f847eabf14bfaba9df373af8e28abfb60de9f5.tar.xz apache2-d7f847eabf14bfaba9df373af8e28abfb60de9f5.zip |
update transforms, 2nd try :-/
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1138643 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/man')
-rw-r--r-- | docs/man/rotatelogs.8 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/man/rotatelogs.8 b/docs/man/rotatelogs.8 index 5a5dadaaea..e850353438 100644 --- a/docs/man/rotatelogs.8 +++ b/docs/man/rotatelogs.8 @@ -19,7 +19,7 @@ .el .ne 3 .IP "\\$1" \\$2 .. -.TH "ROTATELOGS" 8 "2010-12-27" "Apache HTTP Server" "rotatelogs" +.TH "ROTATELOGS" 8 "2011-06-22" "Apache HTTP Server" "rotatelogs" .SH NAME rotatelogs \- Piped logging program to rotate Apache logs @@ -27,7 +27,7 @@ rotatelogs \- Piped logging program to rotate Apache logs .SH "SYNOPSIS" .PP -\fBrotatelogs\fR [ -\fBl\fR ] [ -\fBL\fR \fIlinkname\fR ] [ -\fBf\fR ] [ -\fBv\fR ] [ -\fBe\fR ] \fIlogfile\fR \fIrotationtime\fR|\fIfilesize\fR(B|K|M|G) [ \fIoffset\fR ] +\fBrotatelogs\fR [ -\fBl\fR ] [ -\fBL\fR \fIlinkname\fR ] [ -\fBp\fR \fIprogram\fR ] [ -\fBf\fR ] [ -\fBv\fR ] [ -\fBe\fR ] \fIlogfile\fR \fIrotationtime\fR|\fIfilesize\fR(B|K|M|G) [ \fIoffset\fR ] .SH "SUMMARY" @@ -46,6 +46,9 @@ Causes the use of local time rather than GMT as the base for the interval or for -L \fIlinkname\fR Causes a hard link to be made from the current logfile to the specified link name\&. This can be used to watch the log continuously across rotations using a command like tail -F linkname\&. .TP +-p \fIprogram\fR +Causes the specified program to be executed after each rotation\&. Two arguments are supplied upon execution: the newly opened file and the previous file, respectively\&. rotatelogs does not wait for the specified program to terminate before continuing to operate, and will not log any error code returned on termination\&. The spawned program uses the same stdin, stdout, and stderr as rotatelogs itself, and also inherits the environment\&. +.TP -f Causes the logfile to be opened immediately, as soon as rotatelogs starts, instead of waiting for the first logfile entry to be read (for non-busy sites, there may be a substantial delay between when the server is started and when the first request is handled, meaning that the associated logfile does not "exist" until then, which causes problems from some automated logging tools) .TP |