LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-30-2009, 01:47 AM   #1
gingis55
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
how to make the zipper log smaller automatically?


how to make the zipper log smaller automatically?
 
Old 04-30-2009, 02:32 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
It should already been rotated automatically. In OpenSuse there is a rule in /etc/logrotate.d/zypper.lr. On my system it is:
Code:
$ cat /etc/logrotate.d/zypper.lr
/var/log/zypper.log {
    compress
    dateext
    notifempty
    missingok
    nocreate

    maxage 60
    rotate 99
    size 10M
}
This should rotate zypper.log if it is older than 60 days or bigger than 10M. You can also set the rotate flag to 0 if you want remove old files instead. Eventually reduce the max size or the day count if you want to rotate it more frequently.

Last edited by colucix; 04-30-2009 at 02:33 AM.
 
  


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
How can I make text smaller in console? nflenz Linux - General 5 02-09-2006 07:45 AM
make mpg file size smaller secretlydead Linux - Software 2 02-14-2005 08:42 AM
how could i make my font size smaller in terminal Paxmaster Linux - Software 3 02-05-2005 08:43 PM
How do you make C++ programs smaller? Qwirt Programming 5 11-04-2004 11:32 PM
GTK-based zipper? jpbarto Linux - Software 2 08-04-2004 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration