"Marcelo Chiapparini" <[EMAIL PROTECTED]> writes: > Hi! > > Each time I boot my potato box I receive the following email: > > > /etc/cron.daily/logrotate: > error: /etc/logrotate.conf:6 bad rotation count'2 ' > run-parts: /etc/cron.daily/logrotate exited with return code 1 > > > My /etc/logrotate.conf file is, up to line 6, the following: > > # see "man logrotate" for details > # rotate log files weekly > weekly > > # keep 2 weeks worth of backlogs > rotate 2 > > > I really don't understand what is going wrong with this configuration. > Any help will be very welcome! > > Thanks in advance!
It does look okay, but perhaps you've got a binary character in there that logrotate doesn't like? I'd erase the line containing "rotate 2" completely, and I mean the whole line, not just the characters, something like a "dd" in vi or "C-k" in Emacsen, then type it in by hand being careful not to put any garbage on the line. If that doesn't work send more email to the list and perhaps include your whole logrotate.conf file and maybe the output of the command sh -x /etc/cron.daily/logrotate Gary