LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


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 10:46 PM by the dsc
Updated 09-18-2015 at 10: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.

Quote:
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.

https://bbs.archlinux.org/viewtopic.php?id=175626
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 1376 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

  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 12:07 PM by the dsc the dsc is offline
 

  



All times are GMT -5. The time now is 01:53 AM.

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