[Bug 882532] New: cups.service ignores /etc/sysconfig/cups
https://bugzilla.novell.com/show_bug.cgi?id=882532 https://bugzilla.novell.com/show_bug.cgi?id=882532#c0 Summary: cups.service ignores /etc/sysconfig/cups Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Minor Priority: P5 - None Component: Printing AssignedTo: jsmeix@suse.com ReportedBy: yansys@yannix.net QAContact: jsmeix@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 in /etc/sysconfig/cups, there is variable CUPSD_OPTIONS which we set to "-c /etc/cups/other.conf". However, the startup script ignores this. Looking at /usr/lib/systemd/system/cups.service: [Service] ExecStart=/usr/sbin/cupsd -f Our workaround is modify the section above to: [Service] EnvironmentFile=-/etc/sysconfig/cups ExecStart=/usr/sbin/cupsd -f $CUPSD_OPTIONS Can cups packages be modified to honor the variables in /etc/sysconfig/cups? Or is there an alternate way to do what we want? TIA. I tested on cups version 1.5.4-12.13.1 (from 13.1 update). Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=882532
https://bugzilla.novell.com/show_bug.cgi?id=882532#c1
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=882532
https://bugzilla.novell.com/show_bug.cgi?id=882532#c2
Thomas Blume
https://bugzilla.novell.com/show_bug.cgi?id=882532
https://bugzilla.novell.com/show_bug.cgi?id=882532#c3
Johannes Meixner
From my point of view that was and is overengineered.
Running cupsd with appropriate options in /etc/init.d/cups would have been perfectly sufficient for such a special use case. When running cupsd with appropriate options in cups.service works, it is also perfectly sufficient for such a special use case. In future cups RPMs from openSUSE there will be no /etc/sysconfig/cups support in case of systemd and therfore I close the issue as "wontfix". Currently in the cups RPM from openSUSE 13.1 there is in cups.spec: ----------------------------------------------------------------------------- %post %{fillup_and_insserv -ny cups cups} %if 0%{?have_systemd} %service_add_post cups.service cups.socket cups.path %endif exit 0 ----------------------------------------------------------------------------- In the cups RPM from the Printing development project it is already cleaned up (since "Wed Feb 12 10:30:42 CET 2014" - see cups.changes) and accordingly there is in cups.spec (without comment lines): ----------------------------------------------------------------------------- %post %if 0%{?have_systemd} ... %else %{fillup_and_insserv -ny cups cups} %endif ----------------------------------------------------------------------------- Regarding "fillup_and_insserv" see http://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25fillup_a... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com