FS#26704 - [cups] Should be restarted after suspend
Attached to Project:
Arch Linux
Opened by Olivier Mehani (shtrom) - Monday, 31 October 2011, 23:39 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 16 April 2012, 14:56 GMT
Opened by Olivier Mehani (shtrom) - Monday, 31 October 2011, 23:39 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 16 April 2012, 14:56 GMT
|
Details
Description:
After supending the machine (or, actually, changing network attachment), cupsd is a bit lost and can't print anymore until it is restarted. I'm experimenting with the following in /etc/pm/sleep.d/90cups, but there may be a more appropriate hook associated to the network interfaces. #!/bin/sh # # 90cups: suspend/wakeup CUPS case "$1" in hibernate|suspend) ;; thaw|resume) rc.d restart cupsd ;; *) exit $NA ;; esac Additional info: * cups-1.5.0-1 Steps to reproduce: * boot machine * print something * it works * suspend * resume * print something * cups queues the job, but doesn't print them |
This task depends upon
[0] http://www.cups.org/str.php?L4012