Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

subscription event "printer-stopped" seems to be equal "printer-state-changed" #2572

Closed

Description

@michaelrsweet

Version: 1.3.3
CUPS.org User: aumueller

I try to setup a subscription so that I get an email when a printer queue
stops (on CUPS 1.3.3). The subscriptions.conf file looks like:
(I stopped cups before editing the file)

<Subscription 0>
Events printer-stopped
Owner example
Recipient mailto:example
ExpirationTime 0

I get emails but not the ones I expect :-) . It seems that the event printer-stopped
is equal with printer-state-changed because I get the following email:

Printer: printername processing
....
Printer: printername processing
Printer: printername idle

Activity

  1. michaelrsweet commented on Nov 30, 2007

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Fixed in Subversion repository.

  2. michaelrsweet commented on Nov 30, 2007

    @michaelrsweet
    ContributorAuthor

    "str2572.patch":

    Index: printers.c

    --- printers.c (revision 7077)
    +++ printers.c (working copy)
    @@ -2640,7 +2640,8 @@

    if (old_state != s)
    {

    • cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE_CHANGED, p, NULL,
    • cupsdAddEvent(s == IPP_PRINTER_STOPPED ? CUPSD_EVENT_PRINTER_STOPPED :
    •                  CUPSD_EVENT_PRINTER_STATE_CHANGED, p, NULL,
        "%s \"%s\" state changed.",
        (p->type & CUPS_PRINTER_CLASS) ? "Class" : "Printer",
        p->name);
      
  3. added this to the Stable milestone on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions