This happens so many times - a printer goes offline and soon after CUPS disables the print queue requiring a manual cupsenable
command.
Here is a short script I use to test for any disabled queues, and to then restart them one by one -
#!/bin/sh
# restart.sh
#
# Check if a printer queue is disabled and reenable it.
DISABLED=`lpstat -t | grep disabled | awk '{ print $2; }'`
for PRINTER in $DISABLED
do
logger "Printer $PRINTER is stopped"
/usr/sbin/cupsenable $PRINTER && logger "Printer $PRINTER has been enabled."
done
I usually setup a cronjob to schedule this every 15min -
0,15,30,45 * * * * /usr/local/bin/restart.sh