You are not logged in.

#1 2012-01-25 17:27:19

schneida
Member
Registered: 2009-02-19
Posts: 76
Website

[SOLVED] notifyempty and shredscripts cron error

Hi,

I'm getting two strange errors on my server every day when cron is running logrotate:

error: httpd:6 unknown option 'notifyempty' -- ignoring line
error: httpd:7 unknown option 'shredscripts' -- ignoring line

Anybody got an idea how to resolve that or what might be wrong? Google didn't reveal any secrets...
My logrotate file looks like that:

/var/log/httpd/*/*log {
   missingok
   rotate 52
   compress
   delaycompress
   notifyempty
   shredscripts
   postrotate
      /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true
   endscript
}

Last edited by schneida (2012-01-25 18:22:15)

Offline

#2 2012-01-25 17:45:09

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [SOLVED] notifyempty and shredscripts cron error

You just misspelled the options. The correct ones are: notifempty and sharedscripts (you might want to check what the actually do in man logrotate)

Offline

#3 2012-01-25 18:22:01

schneida
Member
Registered: 2009-02-19
Posts: 76
Website

Re: [SOLVED] notifyempty and shredscripts cron error

Oh no! How embarrassing, I'm sorry bothering you!

You're right, I probably should look them up in the logrotate manual,...  hmm

Offline

Board footer

Powered by FluxBB