Comment 70 for bug 112803

Revision history for this message
hugortega (hugortega) wrote :

Just in case, meanwhile the fix is released, an ugly but effective script to restart the cupsd when the number of pipes is high:

-------------------
#! /bin/bash

pipes=$(sudo lsof -p `pidof cupsd` | grep pipe | wc -l)
maxpipes=30
if [[ $pipes -gt $maxpipes ]] ; then
  echo "Reiniciando servidor CUPS"
  date >> /var/log/cups/restart4pipes.log
  /etc/init.d/cupsys restart
fi
-------------------

Of course, you can drive the file with cron... this script logs the date and time of the events.

Any news about the fix?... I'm trying to introduce ubuntu server as the default server in my company, but those things are not exactly the best publicity :D ... anyway, thanks for ubuntu people...