logrotates doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.. I have a FC1 Linux box act as a syslog server to
collect log from Router.  The log is store on the file
/home/ct/aufolognew  below are my content of
/etc/logrotate.conf and /etc/logrotate.d/syslog and i
found that after I do a 
(linux)#logrotate -f /etc/logrotate.d/syslog

the log will gone and the doesn't rotates daily.  Can
anyone guide me on this 

more /etc/logrotate.conf 
# 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 wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
 }

/home/ct/aufolognew {


    create 0777 root utmp
    rotate 30
    daily
    postrotate
    /sbin/killall -HUP syslogd
    endscript
}

[root@watcher ct]# more  /etc/logrotate.d/syslog
/home/ct/aufolognew /var/log/messages /var/log/secure
/var/log/maillog /var/log/
spooler /var/log/boot.log /var/log/cron {
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2>
/dev/null` 2> /dev/null || t
rue
    endscript
}


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux