From 3a7c25886e4087b4b921002058537ca8f5b15a9e Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Thu, 30 Aug 2012 10:58:44 +0300 Subject: [PATCH] Documentation touches --- zsh-scripts/bin/discover-log-rotate | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/zsh-scripts/bin/discover-log-rotate b/zsh-scripts/bin/discover-log-rotate index 9047a04..39508df 100755 --- a/zsh-scripts/bin/discover-log-rotate +++ b/zsh-scripts/bin/discover-log-rotate @@ -22,9 +22,15 @@ # picked up by a log rotate on the next run discover-log-rotate /etc/logrotate.d/plone-all /srv/plone - Confirm that it works by running logrotate manualy:: + Confirm that it works by running logrotate manualy. - logrotate -f -d /etc/logrotate.config + Dry run, outputs a lot but doesn't touch the files:: + + logrotate -f -d /etc/logrotate.conf + + Test run, rotates the files:: + + logrotate -f /etc/logrotate.conf Also see that your processes can re-open log files after logrotate run by restating a sample process. @@ -94,7 +100,7 @@ def run(): dirpath = os.path.dirname(full) if not dirpath in matches: - print "Adding log rorate entry for: %s" % dirpath + print "Adding log rotate entry for: %s" % dirpath matches.append(dirpath) for match in matches: