LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2011, 10:58 AM   #1
tasdca
LQ Newbie
 
Registered: Nov 2008
Location: Memphis, TN - USA
Distribution: RedHat EL55 and Centos
Posts: 6

Rep: Reputation: Disabled
Unhappy How to prevent /var/spool/cups from becoming full?


Can anyone tell me how to prevent Cups from leaving a huge number of large files in its - /var/spool/cups directory?

Our system basically stopped working this morning because /var was full.

Cups is the culprit.
It had left over 25 gig of files in the /var/spool/cups directory.

I have deleted all the old (large) files.

Cups should clean up after itself.

Does anyone know a setting to make Cups clean up files when its done?

Or should I add this to the list of things Cups will not do (that there is no real fix for)?

1. Cups CANNOT redirect a queue.
2. Cups disables printers when they have a jam(?).
3. Cups does not clean up after itself and fills disks.

Apologies. But, I am a little frustrated with Cups. There does not seem to be too much help for it either. I saw where others had these problems. But, no real solutions.

Tony
 
Old 09-08-2011, 02:15 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
Cups should clean up after itself.
...or, you could let Cron do it for you. Does that system run 24/7? If so, set up a daily Cron job for around - whenever there's nobody around - to flush the folder...

Just a thought...

Luck

Thor
 
Old 09-08-2011, 02:38 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
In cupsd.conf
Use the
Code:
MaxLogSize
option
or disable logging
Code:
LogLevel none
Or as tor said, use cron to delete the rotated log files.

Kind regards

Last edited by repo; 09-08-2011 at 02:39 PM.
 
1 members found this post helpful.
Old 09-08-2011, 08:32 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Actually, you can use the logrotate tool. In spite of its name, it will manage any type of file, not just logs.
 
1 members found this post helpful.
  


Reply



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
disk space full because alot of files in /var/spool/clientmqueue folder k0nsole.c Linux - Software 4 03-21-2016 09:26 AM
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
var/spool/mail is full - how do I clear it? magicman Linux - Newbie 5 03-19-2011 03:39 PM
/usr/spool and /var/spool davidsrsb Slackware 1 04-06-2006 05:57 AM
Printing from Mozilla creates 200Mb files in /var/spool/cups mikeyt_333 Linux - Software 3 05-23-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 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
Open Source Consulting | Domain Registration