summaryrefslogtreecommitdiffstats
path: root/docs/manual/programs/rotatelogs.html.en
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-06-22 23:34:41 +0200
committerStefan Fritsch <sf@apache.org>2011-06-22 23:34:41 +0200
commitd7f847eabf14bfaba9df373af8e28abfb60de9f5 (patch)
tree64eca5364f3d1a1429dc8a6bf3071fb1e26e4cfc /docs/manual/programs/rotatelogs.html.en
parentUpdate transforms (diff)
downloadapache2-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/manual/programs/rotatelogs.html.en')
-rw-r--r--docs/manual/programs/rotatelogs.html.en10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/manual/programs/rotatelogs.html.en b/docs/manual/programs/rotatelogs.html.en
index a6731e4030..00ef91b1a7 100644
--- a/docs/manual/programs/rotatelogs.html.en
+++ b/docs/manual/programs/rotatelogs.html.en
@@ -39,6 +39,7 @@
<p><code><strong>rotatelogs</strong>
[ -<strong>l</strong> ]
[ -<strong>L</strong> <var>linkname</var> ]
+ [ -<strong>p</strong> <var>program</var> ]
[ -<strong>f</strong> ]
[ -<strong>v</strong> ]
[ -<strong>e</strong> ]
@@ -62,6 +63,15 @@ to the specified link name. This can be used to watch
the log continuously across rotations using a command like
<code>tail -F linkname</code>.</dd>
+<dt><code>-p</code> <var>program</var></dt>
+<dd>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. <code>rotatelogs</code> 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.</dd>
+
<dt><code>-f</code></dt>
<dd>Causes the logfile to be opened immediately, as soon as
<code>rotatelogs</code> starts, instead of waiting for the