The problem is most probably caused by inconsistency in how cups-browsed
accesses the local CUPS daemon, for some accesses it uses the domain
socket (which made it mostly well working in your case) and at other
places, especially also during shutdown, it accesses localhost:631 (this
is why it hangs on shutdown), independent of configuration.
Now I have fixed this in the upstream BZR repository. if you are
familiar with compiling stuff by yourself and with BZR, load a current
BZR snapshot, build it, and put its cups-browsed into /usr/sbin/,
replacing the distro's one. Then check whether it solves the problem.
Do the following commands (relevant source code file is
utils/cups-browsed.c FYI):
sudo apt-get build-dep cups-filters
sudo apt-get install bzr
bzr branch http://bzr.linuxfoundation.org/openprinting/cups-filters
cd cups-filters
./configure
make
sudo systemctl stop cups-browsed
sudo cp cups-browsed /usr/sbin/
sudo systemctl start cups-browsed
Now it should run purely on the domain socket. If not (then it probably
runs purely on localhost:631) add the line
DomainSocket /var/run/cups/cups.sock
to /etc/cups/cups-browsed.conf and restart cups-browsed.
Does the shutdown now work correctly?
Till