Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when shutdown hangs, automatically show some helpful information #633

Open
Code7R opened this issue Jul 20, 2015 · 1 comment
Open

when shutdown hangs, automatically show some helpful information #633

Code7R opened this issue Jul 20, 2015 · 1 comment
Labels
pid1 RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@Code7R
Copy link

Code7R commented Jul 20, 2015

Hi,

this is a repost of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792761 , see there for details. And for demonstration, see https://www.unix-ag.uni-kl.de/~bloch/part2.m4v .

Short summary: AFAICS currently the user only one proper way to debug an endless loop on shutdown time, and this also needs to be set up before and also opens a security hole. So that's not a proper solution for randomly appearing problems on a production system.

What I imagine is something like following:

  • after 10 seconds of pointless trying, start displaying more details (like full unit name of the hanging processes)
  • after 20 seconds display even more details
  • after 30 seconds, show the user a message that he can interrupt something somehow. Maybe kill a random hanging task pressing Ctrl-Alt-Del or something (I don't have the expert knowledge here).

And the last thing it should do is reacting to CAD by starting and stopping some unrelated units, that looks totally wrong.

@zonque zonque added the pid1 label Jul 20, 2015
@poettering poettering added the RFE 🎁 Request for Enhancement, i.e. a feature request label Jul 23, 2015
@poettering
Copy link
Member

Note that there's already a logic in place to expedite shutdown if you press C-A-D more than 7x within 2s.

But yeah, we might want to show information about the hanging shutdown automatically, too.

@poettering poettering changed the title needs a more user-friendly way to debug/resolve shutdown hickups when shutdown hangs, automatically show some helpful information Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pid1 RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

3 participants