I am getting the following mail daily. Please help me out
From : Cron Daemon root@server
Subject : Cron <root@server> run-parts /etc/cron.daily
Subject :
/etc/cron.daily/logrotate:
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 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:16 unexpected text
error: /etc/logrotate.conf:17 unexpected text
error: /etc/logrotate.conf:18 unexpected text
error: /etc/logrotate.conf:19 unexpected text
error: /etc/logrotate.conf:20, unexpected text after {
error: /etc/logrotate.conf:20 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:23 lines must begin with a keyword or a filename (possibly in double quotes)
/etc/cron.daily/logrotate File :
etc/logrotate.conf File :Code:#!/bin/sh export TMPDIR=/var/spool/logrotate/tmp /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit 0
HOPE SOMEBODY HELPsCode:# see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 1 # create new (empty) log files after rotating old ones create # RPM packages drop log rotation information into this directory include /etc/logrotate.d # no packages own wtmp -- we'll rotate them here /var/log/wtmp { monthly minsize 1M create 0664 root utmp rotate 1 } # system-specific logs may be also be configured here.![]()



LinkBack URL
About LinkBacks
Reply With Quote





