Public bug reported:

The cups-browsed service fails to exit when systemd tries to stop it,
seemingly because /usr/sbin/cups-browsed fails to exit when it's sent a
SIGTERM signal.

Here are all the relevant logs in journald when trying to stop cups-
browsed using `sudo systemctl stop cups-browsed`:

Sep 11 10:17:26 ubun sudo[3370]: pam_unix(sudo:auth): Couldn't open 
/etc/securetty: No such file or directory
Sep 11 10:17:26 ubun sudo[3370]:   martin : TTY=pts/2 ; PWD=/home/martin ; 
USER=root ; COMMAND=/usr/bin/systemctl stop cups-browsed
Sep 11 10:17:26 ubun sudo[3370]: pam_unix(sudo:session): session opened for 
user root by (uid=0)
Sep 11 10:17:26 ubun systemd[1]: Stopping Make remote CUPS printers available 
locally...
Sep 11 10:18:56 ubun systemd[1]: cups-browsed.service: State 'stop-sigterm' 
timed out. Killing.
Sep 11 10:18:56 ubun systemd[1]: cups-browsed.service: Killing process 1471 
(cups-browsed) with signal SIGKILL.
Sep 11 10:18:56 ubun systemd[1]: cups-browsed.service: Killing process 1521 
(gdbus) with signal SIGKILL.
Sep 11 10:18:56 ubun systemd[1]: cups-browsed.service: Main process exited, 
code=killed, status=9/KILL
Sep 11 10:18:56 ubun systemd[1]: cups-browsed.service: Failed with result 
'timeout'.
Sep 11 10:18:56 ubun systemd[1]: Stopped Make remote CUPS printers available 
locally.
Sep 11 10:18:56 ubun sudo[3370]: pam_unix(sudo:session): session closed for 
user root

As you can see, I run the command at 10:17:26, then nothing happens for
90 seconds, until systemd gives up and sents a SIGKILL at 10:18:56.

This problem hangs shutdown for 90 seconds, so it quite badly affects
the user experience of Ubuntu as a whole, even for users who never use
cups.

** Affects: cups (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1895265

Title:
  cups-browsed fails to exit when systemd tries to shut it down
  (SIGTERM)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1895265/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to