[7913] in athena10
[Debathena] #985: checking for whether CUPS is running is fragile
daemon@ATHENA.MIT.EDU (Debathena Trac)
Thu Jul 21 15:10:35 2011
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
From: "Debathena Trac" <debathena@MIT.EDU>
Cc: debathena@mit.edu
To: kaduk@mit.edu
Date: Thu, 21 Jul 2011 19:10:26 -0000
Reply-To:
Message-ID: <042.5aafcf0f24d5679e21e083d03556e794@mit.edu>
Content-Transfer-Encoding: 8bit
#985: checking for whether CUPS is running is fragile--------------------+-------------------------------------------------------
Reporter: kaduk | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Upstream Utopia
Component: -- | Keywords:
See_also: |
--------------------+------------------------------------------------------- We've recently discovered that we need to check whether CUPS is running in
a few places, e.g. when adding printers. The obvious way, using lpstat
-r, is actually nontrivial since that command merely prints output,
instead of returning a status value of success for running and failure for
not-running.
Thus, we end up parsing its output, which is fragile to upstream changing
that output.
It looks like we currently check for CUPS' status in:
{{{
config/cluster-cups-config/debian/postinst
config/cluster-cups-config/debian/configure-athena-printers
}}}
but that's just a quick check of the past 300 transactions in source-
commits.
We should (a) file an upstream bug that lpstat -r should return a usable
status code, and (b) try to make our scripts robust to any changes
upstream might decide to make.
-- Ticket URL: <http://debathena.mit.edu/trac/ticket/985>Debathena <http://debathena.mit.edu/>MIT Debathena Project