]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
rotatelogs: Add support for running a custom program after a log
authorJoe Orton <jorton@apache.org>
Mon, 20 Jun 2011 10:28:05 +0000 (10:28 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 20 Jun 2011 10:28:05 +0000 (10:28 +0000)
commit0f14fc02dc6bf605ea7ad9d805af2b55bfec475f
treeaef750335fdc59233a90e98ba6594ef13db71213
parent59c52538f36e78ab0e25aa2909a22803779072ef
rotatelogs: Add support for running a custom program after a log
rotation.

* support/rotatelogs.c (post_rotate): New function.
  (usage, dumpConfig): Update.
  (doRotate): Save old filename before rotate; call post_rotate after
  successful rotation.
  (main): Add -p argument.

* docs/manual/programs/rotatelogs.xml: Document -p.

PR: 51285
Submitted by: <sveniu ifi.uio.no>, jorton

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1137590 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
docs/manual/programs/rotatelogs.xml
support/rotatelogs.c