Differences

This shows you the differences between two versions of the page.

Link to this comparison view

doc:installationguide:basic-robots [2012/04/29 20:08]
gradator
doc:installationguide:basic-robots [2012/10/14 20:30] (current)
laurent Add the section logrotate vhffs.log
Line 49: Line 49:
  
 <note>bots_night is set to run in this example at 03:05, this is to deal with the daylight saving time (DST) in CET/CEST (here) which change from 02:00 to 03:00 in spring and from 03:00 to 02:00 in winter. If bots_night were set to run between 02:00 and 03:00, it would be executed 2 times during the move from CEST to CET and not executed at all during the move from CET to CEST.</note> <note>bots_night is set to run in this example at 03:05, this is to deal with the daylight saving time (DST) in CET/CEST (here) which change from 02:00 to 03:00 in spring and from 03:00 to 02:00 in winter. If bots_night were set to run between 02:00 and 03:00, it would be executed 2 times during the move from CEST to CET and not executed at all during the move from CET to CEST.</note>
 +
 +
 +==== Logrotate the bot log file ====
 +
 +Bots log their activities in /var/log/vhffs.log by default.
 +
 +In order to keep this log file ease to use create a logrotate script which is going to automatically rotate, compress and remove the log file. 
 +
 +Edit /etc/logrotate/logrotate.d/vhffs, here is an example:
 +<code>
 +/var/log/vhffs.log {
 +    weekly
 +    rotate 52
 +    compress
 +    missingok
 +    notifempty
 +    create 0640 root root
 +}
 +</code>
Recent changes RSS feed Creative Commons License Donate Driven by DokuWiki