logrotate sur mandrake 8.1 - Linux et OS Alternatifs
MarshPosté le 27-03-2002 à 10:45:18
Le root de mon serveur recoit un gentil petit mail toutes les semaines... : error: /etc/logrotate.conf:3 unexpected text error: /etc/logrotate.conf:4 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:6 unexpected text error: /etc/logrotate.conf:7 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:9 unexpected text error: /etc/logrotate.conf:10 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:12 unexpected text error: /etc/logrotate.conf:13 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:15 unexpected text error: /etc/logrotate.conf:16 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:18 unexpected text error: /etc/logrotate.conf:19 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:21 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:22 unexpected text error: /etc/logrotate.conf:23 unexpected text error: /etc/logrotate.conf:24 unexpected text error: /etc/logrotate.conf:25, unexpected text after { error: /etc/logrotate.conf:25 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:26 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:27 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:28 unexpected text error: /etc/logrotate.conf:29 unexpected text error: /etc/logrotate.conf:30, unexpected text after { error: /etc/logrotate.conf:30 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.conf:31 lines must begin with a keyword or a filename (possibly in double quotes)
Et voici le fichier en question :
# see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4
# create new (empty) log files after rotating old ones create
# uncomment this if you want your log files compressed compress
# RPM packages drop log rotation information into this directory include /etc/logrotate.d
# no packages own lastlog or wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 }
/var/log/lastlog { monthly rotate 1 }
# system-specific logs may be configured here
Je ne vois vraiment pas pkoi il me fait cà, si vous avez une idée ce serait sympa de la faire partager.
Marsh Posté le 27-03-2002 à 10:45:18
Le root de mon serveur recoit un gentil petit mail toutes les semaines... :
error: /etc/logrotate.conf:3 unexpected text
error: /etc/logrotate.conf:4 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:6 unexpected text
error: /etc/logrotate.conf:7 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:9 unexpected text
error: /etc/logrotate.conf:10 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:12 unexpected text
error: /etc/logrotate.conf:13 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:15 unexpected text
error: /etc/logrotate.conf:16 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:18 unexpected text
error: /etc/logrotate.conf:19 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:21 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:22 unexpected text
error: /etc/logrotate.conf:23 unexpected text
error: /etc/logrotate.conf:24 unexpected text
error: /etc/logrotate.conf:25, unexpected text after {
error: /etc/logrotate.conf:25 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:26 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:27 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:28 unexpected text
error: /etc/logrotate.conf:29 unexpected text
error: /etc/logrotate.conf:30, unexpected text after {
error: /etc/logrotate.conf:30 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:31 lines must begin with a keyword or a filename (possibly in double quotes)
Et voici le fichier en question :
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
/var/log/lastlog {
monthly
rotate 1
}
# system-specific logs may be configured here
Je ne vois vraiment pas pkoi il me fait cà, si vous avez une idée ce serait sympa de la faire partager.