Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    378

    error: error running postrotate script

    I received error mesage from my server as below:

    /etc/cron.daily/logrotate:

    error: error running postrotate script
    error: error running postrotate script
    error: error running postrotate script
    error: error running shared postrotate script for /var/log/messages /var/log/secure
    /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron

    My server is running Redhat Enterprise and CPanel..
    Anybody know how to solve it?

  2. #2
    What is the postrotate script for those files? Check out the file /etc/logrotate.d/syslog. The file should look like this:

    Code:
    /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
        sharedscripts
        postrotate
            /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
        endscript
    }
    Game control panels - control your game world your way. Server-Genie.com
    http://www.server-genie.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •