LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-11-2015, 01:48 PM   #1
tigerhuang
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Rep: Reputation: 0
size of file /var/spool/plymouth/boot.log keeps growing


Hi All,

I have Rsyslog 8.7 installed on the Redhat linux (Linux version 3.8.13-55.1.5.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3)). So I don't need messages logged somewhere else.

I happened to notice the size of 2 files /var/log/boot.log and /var/spool/plymouth/boot.log kept growing. They are eating up my HDD space. I disabled file /var/log/boot.log in /etc/rsyslog.conf. Where can I do the same thing for file /var/spool/plymouth/boot.log?

Regards,

Robert
 
Old 03-12-2015, 11:48 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Why not just delete the file ' /var/spool/plymouth/boot.log' periodically (Cron).
 
Old 03-13-2015, 01:55 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by veerain View Post
Why not just delete the file ' /var/spool/plymouth/boot.log' periodically (Cron).
"Just" deleting logs is bound to give you headaches, besides they invented 'logrotate' for that kind of thing.


Quote:
Originally Posted by tigerhuang View Post
Where can I do the same thing for file /var/spool/plymouth/boot.log?
No idea, all I can see is that Plymouth ('rpm -qi plymouth') does this on its own.
 
Old 03-13-2015, 03:53 PM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,145

Rep: Reputation: 236Reputation: 236Reputation: 236
You can manage logs with logrotate (a background sub-system) which starts a new log periodically and compresses the old one.
For example:-
Code:
ls -lh /var/log
.....
-rw-r----- 1 root      adm        895K Mar 13 19:06 kern.log
-rw-r----- 1 root      adm        2.3M Mar  9 04:57 kern.log.1
-rw-r----- 1 root      adm        172K Mar  1 06:36 kern.log.2.gz
-rw-r----- 1 root      adm        393K Feb 23 02:15 kern.log.3.gz
-rw-r----- 1 root      adm        326K Feb 15 05:50 kern.log.4.gz
....
 
  


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
[SOLVED] No /var/log/messages , syslog , kern.log -but cat /var/spool/octopussy/octo_fifo masuch Linux - Newbie 4 06-13-2012 08:05 PM
[SOLVED] Won't boot: /etc/rc.d/init.d/rc: line 193: /var/log/boot.log: Read-only file system liquidkaleidoscopes Linux From Scratch 6 11-11-2011 08:53 PM
/var/log/boot.log has size 0 ?? jhwilliams Fedora 3 06-16-2007 08:55 AM
/var/log/maillog file size vaughn Linux - Software 6 12-15-2003 05:12 PM
How to control log file size in /var/log? yan Linux - General 2 10-13-2003 05:00 PM


All times are GMT -5. The time now is 11:53 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