After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 599180 - Do not restart local display manager when halting/rebooting
Do not restart local display manager when halting/rebooting
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-21 12:16 UTC by Vincent Untz
Modified: 2018-05-24 10:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Look at the runlevel before managing the display again (1.62 KB, patch)
2009-10-21 12:16 UTC, Vincent Untz
reviewed Details | Review

Description Vincent Untz 2009-10-21 12:16:51 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 1 Ray Strode [halfline] 2009-12-21 18:42:34 UTC
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!"
Comment 2 GNOME Infrastructure Team 2018-05-24 10:22:09 UTC
-- 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.