LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-05-2013, 09:03 AM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 60

Rep: Reputation: Disabled
Exclamation Logrotate stopped working


I am using a suse, logrotate works when I run like this
Code:
/usr/sbin/logrotate -vf /etc/logrotate.d/messages
but not when I run
Code:
 /usr/sbin/logrotate -vf /etc/logrotate.conf
Code:
/usr/sbin/logrotate -vf /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apache2
reading config info for /var/log/apache2/access_log 
reading config info for /var/log/apache2/error_log 
reading config info for /var/log/apache2/suexec.log 
reading config info for /var/log/apache2/ssl_request_log 
reading config info for /var/log/apache2/ssl_engine_log 
reading config file arch_cmd_log
reading config info for /var/log/arch_cmd_log

olddir is now /var/log/rotated
reading config file logger.txt
reading config file luna2.commandlog
reading config info for /var/log/luna2.commandlog

olddir is now /var/log/rotated
reading config file luna_log
reading config info for /var/log/luna.log

olddir is now /var/log/rotated
reading config file messages
reading config info for /var/log/messages

olddir is now /var/log/rotated
reading config file net-snmp
reading config info for /var/log/net-snmpd.log 

olddir is now /var/log/rotated/
reading config file ntp
reading config info for /var/log/ntp 
reading config file openslp-server
reading config info for /var/log/slpd.log 
reading config file rsync
reading config info for /var/log/rsyncd.log 
reading config file scpm
reading config info for /var/log/scpm 
reading config file syslog
reading config info for /var/log/warn /var/log/allmessages /var/log/localmessages /var/log/firewall 
olddir is now /var/log/rotated/
reading config info for /var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err 
olddir is now /var/log/rotated/
reading config info for /var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice 
reading config file syslog-ng
reading config info for /var/log/acpid /var/log/NetworkManager 
reading config file warn
error: warn:1 duplicate log entry for /var/log/warn
Code:
Linux luna 2.6.16.21-0.8-bigsmp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux
my "/etc/logrotate.conf" has permissions as follows
Code:
rw-r--r-- 1 root root 569 Mar  5 09:39 /etc/logrotate.conf
 
Old 03-05-2013, 09:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
so what have you done about the error you've pasted here?

Code:
error: warn:1 duplicate log entry for /var/log/warn
looks to me like you should remove the duplicate log entry.
 
Old 03-05-2013, 09:33 AM   #3
slufoot80
Member
 
Registered: Nov 2011
Posts: 60

Original Poster
Rep: Reputation: Disabled
I will fix that but why doesn't it read the "/etc/logrotate.conf"?
 
Old 03-05-2013, 09:36 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
huh?

Code:
reading config file /etc/logrotate.conf
it is, and it found a fault, so stopped.

Looks like you've had a bizarre idea to strip everything out of the main config file and put every file into it's own config file for some reason??

Last edited by acid_kewpie; 03-05-2013 at 09:37 AM.
 
Old 03-05-2013, 10:07 AM   #5
slufoot80
Member
 
Registered: Nov 2011
Posts: 60

Original Poster
Rep: Reputation: Disabled
Thanks that fixed it, but I keep them separate because some of them are different and some are the same
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logrotate not working ankitjainfsl Linux - Newbie 3 09-10-2012 02:29 AM
logrotate not working as expected linux833 Linux - General 2 08-06-2012 02:05 AM
[SOLVED] logrotate or logrotate.conf; problems with sftp slufoot80 Linux - Server 1 11-05-2011 07:50 AM
[SOLVED] Ubuntu 11.04 mic stopped working in HP G-32, but was working before.how to fix it? Highjo Ubuntu 4 08-08-2011 05:59 AM
Three Mobile Broadband was configured and working but it has now stopped working and Tinabarma Linux - Newbie 0 10-20-2008 07:36 AM


All times are GMT -5. The time now is 12:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration