Bug 246029 - Printer operation policy not set on service start / restart / reload
Summary: Printer operation policy not set on service start / restart / reload
Keywords:
Status: CLOSED DUPLICATE of bug 246027
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 6
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-27 22:37 UTC by Opher Shachar
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-06-27 22:40:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CUPS Bugs and Features 2319 0 None None None Never

Description Opher Shachar 2007-06-27 22:37:04 UTC
Description of problem:
When the CUPS service is started or restarted or reloaded printer operation 
policies are not set (they are left 'default').

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

How reproducible:
Always.

Steps to Reproduce:
1. service cups restart / start / reload
2. lpadmin -p myprinter -o printer-op-policy=foo
3. Policy takes affect.
4. service cups restart / start / reload
5. Policy for myprinter was reset to 'default'
  
Actual results:
Unlike the report in CUPS STR #2319 a reload does *not* preserve or loads 
printer operation policies.

Expected results:


Additional info:
This script, placed in /etc/init.d/cups, can workaround this.

while read tag printer; do
    [[ "$tag" != "<Printer" ]] && continue
    printer=${printer%>}
    while read tag value; do
        [[ "$tag" == "</Printer>" ]] && break
        [[ "$tag" != "OpPolicy" ]] && continue
        echo "lpadmin -p $printer -o printer-op-policy=$value"
        lpadmin -p $printer -o printer-op-policy=$value
    done
done < /etc/cups/printers.conf

Comment 1 Opher Shachar 2007-06-27 22:40:52 UTC

*** This bug has been marked as a duplicate of 246027 ***


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