System Hangs on Shutdown
- Postfix, iPhone, Apple Mail and the reject
- Updating the SSL certs on the Unifi Controller
- Firefox and org-protocol URL Capture
- System Hangs on Shutdown
- Let's Encrypt Certificates and Arch
- /bin/mail as MTA
- Filtering bots with erc
- DSCP Tagging with iptables
- Bitlbee, Purple-Sipe-Lync, and Certificates
- daemontools, Apache, and the Whole Process Group
- Comma Trouble
- Emacs DNS Mode
- Wrangling Namespaces in Python
- Using Skype from Emacs
- Choosing the Right Technology
- Django, Testing, and Sessions
- KMS, xvideo-intel, and Arch Linux
- Verizon UMW-190 and Arch Linux
- Hawking Range Extender and Linux
- CUPS driver for the Dell 1320C Printer on Arch
- SANE and the Canon LIDE 20
- Getting easypg working in Ubuntu
Arch Linux Hangs on Shutdown
2016-06-22
After a systemd
upgrade, the system started to hang on shutdown/reboot, with the console indicating it was waiting on a user session.
Per this bug report, it looks like some process is dumping core during shutdown (do I care at this point?).
The core pattern is:
$ cat /proc/sys/kernel/core_pattern |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e
So, something dumps core during shutdown and the data is piped to systemd
, which is trying to shutdown, and the 90 second wait ensues…
I created a systemd
unit file to change the core pattern to /dev/null
on shutdown:
$ cat /etc/systemd/system/fix_core.service [Unit] Description=Fix core. [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/true ExecStop=echo "/dev/null" > /proc/sys/kernel/core_pattern [Install] WantedBy=multi-user.target
I'm not ordering the unit, so that could be better, but so far, this works for me.