Public bug reported: We find ourselves needing to programmatically check whether cupsd is running (so that we can use lpadmin to add our site's printers for our users, but there are many other possible reasons one might want to do this). 'lpstat -r' seems the obvious way to do so, but the command always returns zero (success). Thus, we are forced to parse the text output of 'lpstat -r', which is quite fragile to that text changing in a future release. 'lpstat -r' should return nonzero when cupsd is not running, allowing for a robust determination of whether cupsd is running (and thus other commands will fail).
This bug was observed in natty, with cups 1.4.6-5ubuntu1.3 ** Affects: cups (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/814908 Title: lpstat should return failure when cupsd is not running To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/814908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs