On 08/21/2016 02:20 PM, Brian Potkin wrote: > On Thu 28 Jul 2016 at 02:00:36 +0200, Heinrich Schuchardt wrote: > > Thank you for your report, Heinrich. > >> every time I shutdown my system I have to wait 90 s for a stop job >> showing the message > > Is this consistent behaviour?
Yes, this happened on every shut down until I uninstalled the package cups-browsed. > >> A stop job runs for Make remote CUPS printers available locally > > This should not be happening since 1.9.0-1. > >> Shutdown should be as fast as possible. >> >> The same job could be run in the background at any time. >> >> Typically systems are shutdown when leaving office and restarting >> the system in another network with other printers. >> >> So looking for remote printers in a shutdown job does not >> make much sense. If the job is needed at all, run it when >> starting the system. > > cups-browsed creates local print queues for remote queues when it starts > up. These queues need removing when it closes down. To do this it needs > the cups daemon to be running so that it can communicate with it and > have it adjust the contents of /etc/cups/printer.conf. > > Issue the command > > systemctl stop cups.service cups-browsed.service > > It should complete almost immediately. Does it? It stops immediately > > Look at the output of 'journalctl'. It should show cups-browsed stopping > before cups does. This allows communication between the two to continue > and is an indication of what should happen at reboot or poweroff. Aug 21 17:45:18 LT002 systemd[1]: Stopping Make remote CUPS printers available locally... Aug 21 17:45:18 LT002 systemd[1]: Stopped Make remote CUPS printers available locally. Aug 21 17:45:18 LT002 systemd[1]: Stopping CUPS Scheduler... Aug 21 17:45:18 LT002 systemd[1]: Stopped CUPS Scheduler. Aug 21 17:45:18 LT002 polkitd(authority=local)[2040]: Unregistered Authentication Agent for unix-process:5935:652630 (system bus name :1.75, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus) > > Please post the contents of cups-browsed.service and cups.service from > /lib/systemd/system/. cat /lib/systemd/system/cups-browsed.service [Unit] Description=Make remote CUPS printers available locally Requires=cups.service After=cups.service avahi-daemon.service Wants=avahi-daemon.service [Service] ExecStart=/usr/sbin/cups-browsed [Install] WantedBy=multi-user.target cat /lib/systemd/system/cups.service [Unit] Description=CUPS Scheduler Documentation=man:cupsd(8) [Service] ExecStart=/usr/sbin/cupsd -l Type=simple [Install] Also=cups.socket cups.path WantedBy=printer.target > > Regards, > > Brian. >