Current time: 07-07-2024, 11:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
Keine Logs mehr?
Author Message
Jebus Offline
Junior Member
*

Posts: 15
Joined: Dec 2008
Reputation: 0
Post: #6
RE: Keine Logs mehr?
/etc/logrotate.d/apache2
Code:
root:/etc/logrotate.d# cat apache2
/var/log/apache2/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        prerotate
                /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl &> /dev/null
        endscript
        postrotate
                if [ -f /var/run/apache2.pid ]; then
                        /etc/init.d/apache2 restart > /dev/null
                fi
        endscript
}


/etc/logrotate.d/ispcp
Code:
root:/etc/logrotate.d# cat ispcp
/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
}
04-08-2009 01:23 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Keine Logs mehr? - Jebus - 03-31-2009, 01:56 AM
RE: Keine Logs mehr? - Jebus - 04-03-2009, 02:21 AM
RE: Keine Logs mehr? - BeNe - 04-03-2009, 05:20 AM
RE: Keine Logs mehr? - Jebus - 04-07-2009, 02:04 AM
RE: Keine Logs mehr? - FISA4 - 04-07-2009, 02:42 AM
RE: Keine Logs mehr? - Jebus - 04-08-2009 01:23 AM
RE: Keine Logs mehr? - BeNe - 04-09-2009, 08:03 AM
RE: Keine Logs mehr? - Jebus - 04-12-2009, 12:05 AM
RE: Keine Logs mehr? - Lucan - 04-12-2009, 12:10 AM
RE: Keine Logs mehr? - Jebus - 04-20-2009, 06:07 AM

Forum Jump:


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