If my printer is turned off, lpr
still works fine, lpq
shows the job in the print queue, and if I turn on the printer the job prints okay.
But if I wait a few hours though, lpr
shows that the queue is empty and my print job has disappeared, so obviously something is automatically deleting old print jobs.
What controls that automated deletion, and how can I configure it to wait longer?
According to this answer on superuser all you should have to do is to add a line like the following to your
/etc/cups/cupsd.conf
:0
means disabled timeout. Default is10800
seconds which is 3 hours if not specified.Example:
If you want 5 hours you put the time in as seconds:
You can play around with the seconds and find what suits your needs.
Hope this helps!