Current time: 11-26-2024, 07:36 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[ERLEDIGT]Problem Logrotate
Author Message
bl4ckr4ptor Offline
Junior Member
*

Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #4
RE: Problem Logrotate
Hallo zusammen

bei mir siehts wiefolgt aus:

Fehler:
Code:
/etc/cron.daily/logrotate:
error: ispcp:65 duplicate log entry for /var/log/apache2/access.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

/etc/logrotate.d/apache2
Code:
/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 "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
            /etc/init.d/apache2 reload > /dev/null
        fi
    endscript
}

/etc/logrotate.d/ispcp
Code:
/var/log/apache2/*.log {
  weekly
  rotate 52
  missingok
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  prerotate
    if [ `cat /etc/ispcp/ispcp.conf | grep -c 'AWSTATS_ACTIVE *= *yes'` = 1 ]; then
      perl /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1
    fi
  endscript
  postrotate
    if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
      /etc/init.d/apache2 reload > /dev/null
    fi
  endscript
}

Kann ich einer der Einträge gefahrlos löschen?
Und welchen der beiden? (Der Eintrag ind der ispcp gefällt mir besser..)

Gruss bl4cki
10-14-2010 05:09 AM
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
[ERLEDIGT]Problem Logrotate - Tolga - 09-21-2010, 07:17 PM
RE: Problem Logrotate - ronaldpeter - 10-06-2010, 06:14 PM
RE: Problem Logrotate - BeNe - 10-06-2010, 10:28 PM
RE: Problem Logrotate - bl4ckr4ptor - 10-14-2010 05:09 AM
RE: Problem Logrotate - BeNe - 10-14-2010, 10:11 PM
RE: Problem Logrotate - Nanakie - 11-18-2010, 10:53 AM

Forum Jump:


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