Current time: 07-07-2024, 05:27 AM Hello There, Guest! (LoginRegister)


Post Reply 
Logrotate problem!
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #9
RE: Logrotate problem!
Found the problem. If rsyslog is used logrotate will fail on
Code:
/usr/bin/killall -HUP syslogd
For debian replace /etc/logrotate.d/ispcp with:
Code:
/var/log/apache2/users/*.log {
  weekly
  missingok
  rotate 52
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  prerotate
    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log
  endscript
  postrotate
    /etc/init.d/apache2 reload > /dev/null
  endscript
}

/var/log/apache2/backup/*.log.perv {
  size 5M
  missingok
  rotate 5
  compress
  delaycompress
  notifempty
  create 640 root adm
}

/var/log/proftpd/xferlog {
  daily
  rotate 7
  missingok
  compress
  delaycompress
  postrotate
    if [ -e /var/run/syslogd.pid ]; then
      /usr/bin/killall -HUP syslogd
    elif [ -e /var/run/rsyslogd.pid ]; then
      /usr/bin/killall -HUP rsyslogd
    fi
  endscript
}

/var/log/proftpd/ftp_traff.log {
  daily
  rotate 7
  missingok
  compress
  delaycompress
  prerotate
    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log
  endscript
  postrotate
    if [ -e /var/run/syslogd.pid ]; then
      /usr/bin/killall -HUP syslogd
    elif [ -e /var/run/rsyslogd.pid ]; then
      /usr/bin/killall -HUP rsyslogd
    fi
  endscript
}
For other distro check r1353
09-21-2008 01:43 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Logrotate problem! - skirmish - 06-15-2008, 09:20 AM
RE: Logrotate problem! - BeNe - 06-16-2008, 03:30 AM
RE: Logrotate problem! - skirmish - 06-16-2008, 11:49 PM
RE: Logrotate problem! - suw - 09-15-2008, 07:44 AM
RE: Logrotate problem! - sci2tech - 09-15-2008, 07:51 AM
RE: Logrotate problem! - suw - 09-16-2008, 01:39 PM
RE: Logrotate problem! - sci2tech - 09-17-2008, 01:00 AM
RE: Logrotate problem! - suw - 09-18-2008, 11:02 PM
RE: Logrotate problem! - sci2tech - 09-21-2008 01:43 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)