https://bugzilla.novell.com/show_bug.cgi?id=857372
https://bugzilla.novell.com/show_bug.cgi?id=857372#c115
--- Comment #115 from Johannes Meixner 2014-02-19 18:03:23 CET ---
YaST totally fails to deal with the overcomplicated
default setup for the cupsd up to openSUSE 13.1.
To stop and disable the cupsd the YaST printer module
in openSUSE 13.1 calls in /usr/share/YaST2/modules/Printerlib.rb
------------------------------------------------------------------------
Service.Stop("cups")
Service.Disable("cups")
------------------------------------------------------------------------
followed by testing whether or not it is actuall disabled
------------------------------------------------------------------------
if @local_cupsd_accessible
Popup.Error(_("A locally running CUPS daemon is still accessible."))
return false
------------------------------------------------------------------------
where @local_cupsd_accessible evaluates to running the command
"/usr/bin/lpstat -h localhost -r"
but that does somehow re-activate the cupsd - I assume because
cups.socket was not fully stopped and disabled before.
In y2log this looks as follows (long lines wrapped here):
------------------------------------------------------------------------
[Ruby] modules/Service.rb:568 Stopping service cups
[Ruby] modules/Service.rb:380 Running service initscript cups stop
[bash] ShellCommand.cc(shellcommand):78 Warning: Stopping cups.service,
but it can still be activated by:
[bash] ShellCommand.cc(shellcommand):78 cups.path
[bash] ShellCommand.cc(shellcommand):78 cups.socket
[Ruby] modules/Service.rb:522 Disabling service cups
[bash] ShellCommand.cc(shellcommand):78 rm
'/etc/systemd/system/multi-user.target.wants/cups.path'
[bash] ShellCommand.cc(shellcommand):78 rm
'/etc/systemd/system/sockets.target.wants/cups.socket'
[bash] ShellCommand.cc(shellcommand):78 rm
'/etc/systemd/system/cupsd.service'
[bash] ShellCommand.cc(shellcommand):78 rm
'/etc/systemd/system/printer.target.wants/cups.service'
[Ruby] modules/Printerlib.rb:97 Executing bash commandline:
/usr/bin/lpstat -h localhost -r | grep -q 'scheduler is running'
------------------------------------------------------------------------
On the command line this looks as follows:
Before YaST tries to stop and disable the cupsd
(this is the usual out-of-the-box state of an openSUSE 13.1 system):
------------------------------------------------------------------------
# systemctl list-unit-files | egrep 'print|cups' | tr -s ' '
cups.path enabled
configure-printer@.service static
cups.service enabled
cupsd.service enabled
cups.socket enabled
printer.target static
# systemctl list-units | egrep 'print|cups' | tr -s ' '
cups.path loaded active running CUPS Printer Service Spool
cups.service loaded active running CUPS Printing Service
cups.socket loaded active running CUPS Printing Service Sockets
printer.target loaded active active Printer
# ps auxw | grep cups
root 19537 ... 17:43 0:00 /usr/sbin/cupsd -f
------------------------------------------------------------------------
After YaST had tried to stop and disable the cupsd:
------------------------------------------------------------------------
# systemctl list-unit-files | egrep 'print|cups' | tr -s ' '
cups.path disabled
configure-printer@.service static
cups.service disabled
cups.socket disabled
printer.target static
# systemctl list-units | egrep 'print|cups' | tr -s ' '
cups.path loaded active waiting CUPS Printer Service Spool
cups.service loaded active running CUPS Printing Service
cups.socket loaded active running CUPS Printing Service Sockets
printer.target loaded active active Printer
# ps auxw | grep cups
root 19693 ... 17:45 0:00 /usr/sbin/cupsd -f
------------------------------------------------------------------------
Disabling had worked bot stopping did not work.
What a mess!
--
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.