GNOME Bugzilla – Bug 599180
Do not restart local display manager when halting/rebooting
Last modified: 2018-05-24 10:22:09 UTC
Created attachment 145946 [details] [review] Look at the runlevel before managing the display again In gdm-static-display.c, I can see that the display manager is restarted once it has exited. However, this is quite useless when the computer is shutting down or rebooting -- I guess it even slows down this a bit. It's quite simple to look at the current runlevel, and if it's 0 (shutdown) or 6 (reboot), we can just decide to not do this. See the attached patch.
Comment on attachment 145946 [details] [review] Look at the runlevel before managing the display again While this solves a real problem that needs to be solved, I'm not sure I like the approach. Maybe a better approach would be to have the OS tell GDM not to respawn when switching runlevels? Relying on utmp is a little groaty, and some systems may not even have run levels. It could be just making sure GDM gets the TERM signal before the X server is all that's needed. Alternatively, ConsoleKit could get involved and say "we're shutting down now!"
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/7.