Re: [gdm-list] How to shut system down at the end of session




John:

I'm not sure this is strictly related to GDM. Anyway
this is my problem: I need to automatically shut
system down as the last application of a session has
exited. I tried to do it by a "shutdown" command in
the last line of .xsession script, but the system does
not seem to go down in a clean way. Some times the
system goes down closing all services, others it goes
directly to power the system off, others it freezes
showing the arrow cursor on a black screen.
Any help?
Thank you!

Try putting this in your .xsession script:

gdmflexiserver --command="SET_LOGOUT_ACTION HALT"

This should cause GDM to shutdown your system cleanly
after your session exits, just as if you hit the Shutdown
button on the GDM login screen.

You can also use SET_SAFE_LOGOUT_ACTION instead if you
want GDM to wait until all users have logged out before
performing the HALT.

Brian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]