Skip to content

Commit

Permalink
Documentation touches
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Aug 30, 2012
1 parent aa952e6 commit 3a7c258
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions zsh-scripts/bin/discover-log-rotate
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3a7c258

Please sign in to comment.