Right, if something in the user session does not terminate upon SIGTERM and stays around, we will wait for that amount of time for it to shut down. This is a safety measure to avoid hard-killing user processes which still need to save documents or other data. A long shutdown time is an inconvenience for sure, but this is better than losing data by instantly killing hanging processes.
It would be better to find out the particular process that's hanging (see "Debugging boot/shutdown problems" in /usr/share/doc/systemd/README.Debian.gz) and file a bug against that. ** Changed in: systemd (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1565740 Title: A stop job for user session delays shutdown on Xenial To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1565740/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs