Visit Jeremy's Blog.
Go Back > Blogs > linux-related notes
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

"Systemd sometimes doesn't shutdown" -- collecting links and info

Posted 01-31-2015 at 11:46 PM by the dsc
Updated 09-18-2015 at 11:14 AM by the dsc

It's very sporadic, somewhat rare, so I won't really open a thread on the forums themselves, but I'll just collect links and snippets here hoping there's some way to fix it, if it doesn't get fixed "by itself"/by systemd/debian developers first.

I have Mate desktop and Slim installed:
halt_cmd /sbin/systemctl poweroff -i
reboot_cmd /sbin/systemctl reboot -i
like this, when I request shutdown all applications exit and then slim restart and shutdown is stopped ?
However when I add --force to this command it looks like everything works; but is there a way to send SIGTERM and wait for all processes to end ? because with force they will be killed immediately with SIGKILL and won't wait for them.
First i thought some application suppressed shutdown so I added the -i to ignore all inhibitors but no luck.
Thanks in advance.
I never tried the "-i" thing, though. It would be just a work-around, though, not really a fix.

It's hard to find seemingly relevant information. It seems behavior like this (or rebooting instead of shutting down) is quite common (I've found mostly bug reports/forum threads when googling just for "systemctl poweroff /sbin/poweroff", hoping to find if they were different things, but "file" told me the latter is a symlink). Some recommendations include purging packages I've never have installed, or silly things like calling the "systemctl poweroff" command via the /sbin/poweroff symlink to it, or vice-versa. It seems some people got the issue solved by half-reinstalling sysv...


September 18, 2015 - it seems it doesn't happen anymore, for quite a while now. However, nowadays what happens sometimes (rarely) is that KDM auto-login will fail with a message with a keyword like "pam-nologin". I'll probably change from KDM to "slimDM" or whatever in the somewhat near future (until ssdm/whatever is the new plasma/former-kde dm becomes mandatory, if its config isn't compatible enough/similar enough with kdmrc or annoys me otherwise), so maybe it won't be a problem even if it persists.
Posted in Uncategorized
Views 1099 Comments 1
« Prev     Main     Next »
Total Comments 1


  1. Old Comment
    Eventually it ceased to occur, it seems. I wonder if everybody is still hating systemd as much or even more.
    Posted 06-25-2015 at 01:07 PM by the dsc the dsc is offline


All times are GMT -5. The time now is 03:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration