RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 659692 - cups won't stop on reboot or halt
Summary: cups won't stop on reboot or halt
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cups
Version: 6.1
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 659391
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-03 14:05 UTC by Yulia Kopkova
Modified: 2011-05-19 14:09 UTC (History)
6 users (show)

Fixed In Version: cups-1.4.2-37.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 659391
Environment:
Last Closed: 2011-05-19 14:09:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0715 0 normal SHIPPED_LIVE cups bug fix update 2011-05-18 18:09:48 UTC

Description Yulia Kopkova 2010-12-03 14:05:36 UTC
+++ This bug was initially created as a clone of Bug #659391 +++

Created attachment 464306 [details]
patch to fix cups shutdown problem

Description of problem:

When rebooting or halting a system with the CUPS service running, the CUPS
service won't stop normally. Instead, it has to be killed in the final stage of reboot or shutdown. This is almost identical to bug 652786 except it's CUPS and not NFS.

Version-Release number of selected component (if applicable):

cups-1.4.4-11.fc14.i686

How reproducible:

Operate system normally with CUPS service running. 

Steps to Reproduce:
1. Have CUPS start either on runlevel or manual start
2. Reboot or halt system


Actual results:

CUPS fails to stop. The cupsd daemon has to be killed in the final moment before shutdown or reboot.

Expected results:

CUPS service stops normally without having to be killed outside its init script.

Additional info:

If CUPS is stopped manually before reboot/halt like so:

# service cups stop

it will stop cleanly and show appropriate messages for various components.
However, when the system is rebooting or halting no CUPS messages are seen,
seeming to indicate that it never shuts down.

The bug exists because the subsystem lock file name does not match
the init script name. The /etc/rc.d/rc script checks to see if a subsytem is
running by using the name of the init script for the subsystem file. In the
case of the CUPS subsystem, the CUPS init script creates a subsysetm file
/var/lock/subsys/cupsd. It should be cups (no d on the end).

A simple tweak to the init script fixes the problem. Patch attached.

--- Additional comment from jpopelka on 2010-12-03 08:39:51 EST ---

Thank you.

Commited with a little tweak.
http://pkgs.fedoraproject.org/gitweb/?p=cups.git;a=commitdiff;h=f0480cb93d795bd368ceed5e251bde0c50b4bca9

Comment 7 errata-xmlrpc 2011-05-19 14:09:41 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0715.html


Note You need to log in before you can comment on or make changes to this bug.