Current time: 12-23-2024, 05:16 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Resuelto] error en logrotate
Author Message
morgan Offline
Junior Member
*

Posts: 63
Joined: Dec 2007
Reputation: 0
Post: #3
RE: error en logrotate
Aqui va Debian Lenny ispcp 1.07 instalada de cero,

/etc/logrotate.d/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 "`. /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:

/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 2>&1
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
}
# Rotation for user traffic prevs
#
/var/log/apache2/backup/*.log.prev {
size 5M
missingok
rotate 5
compress
delaycompress
notifempty
create 640 root adm
}
# Rotation for apache2, launching general statistics if awstats is installed
#
/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
}
# Rotation for ispcp-apache-logger logfiles
#
"/var/log/ispcp/ispcp-apache-logger.stderr" /var/log/ispcp/ispcp-apache-logger.stdout {
weekly
rotate 2
size 10M
missingok
compress
delaycompress
notifempty
create 640 root adm
}

# ProFTPd traffic rotation for ispCP traffic count
#
/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 2>&1
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
}


# ProFTPd traffic rotation for ispCP traffic count
#
/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 2>&1
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
}

es un error de la instalacion que repite el logrotate del apache pero no cual quitar.

Gracias de antemano

Un saludo desde el sur
12-15-2010 04:46 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[Resuelto] error en logrotate - morgan - 12-15-2010, 03:01 AM
RE: error en logrotate - kilburn - 12-15-2010, 03:59 AM
RE: error en logrotate - morgan - 12-15-2010 04:46 AM
RE: error en logrotate - kilburn - 12-15-2010, 10:15 PM
RE: error en logrotate - morgan - 12-16-2010, 03:17 AM
RE: error en logrotate - kilburn - 12-17-2010, 09:35 AM
RE: [Resuelto] error en logrotate - sfera - 12-31-2011, 08:21 AM

Forum Jump:


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