>> Sometimes when cups on a TSL 2.2 box is spooling to a jetdirect or
>> similar printserver and the printserver is not responding (network
>> timeout), the queue is 'stopped' in cups. I have to start the queue
>> after the reset of the printserver by hand.
>>
>> Is there a way to start the queue automaticaly when the printserver 
>> is ready?
>>
>>
>>
> /usr/bin/accept or /usr/sbin/enable and name for this printer.
> You can put this on cron for controling every 5minut.
> */5 * * * * root script_name
> And in script name testing if jetdirect life/ping or something like
> that/ and after this enable this printer.

I have a line to enable all disabled printers now in my crontab every 5 mins:
for i in `lpstat -p|grep 'disabled'|cut -f2 -d' '`; do /usr/bin/enable 
$i; done

Maybe there is a nicer way of doing this. My goal was acually 
preventing the printer to disable at all, but this works, thanks.

--
Ariën Huisken


_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to