You are not logged in.

#1 2008-01-17 21:09:14

fi-dschi
Member
Registered: 2007-09-16
Posts: 19

Shutdown from xserver harmful?

I am using arch and linux for quite a while now but I am still worried whether executing the commands shutdown, halt, reboot and init 3 directly in XFCE can be harmful to the system. Thank you for your answers.
fi-dschi

Last edited by fi-dschi (2008-01-17 21:09:30)

Offline

#2 2008-01-17 21:30:31

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Shutdown from xserver harmful?

I'm pretty sure that as the reboot command runs it shutsdown any process, i know that in KDE if you run the shutdown etc it just won't save your current session.

hope thats of some help


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#3 2008-01-17 21:40:04

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Shutdown from xserver harmful?

A cleaner solution is to use /usr/lib/xfce4/xfsm-shutdown-helper

Offline

#4 2008-01-17 21:50:19

fi-dschi
Member
Registered: 2007-09-16
Posts: 19

Re: Shutdown from xserver harmful?

Thank you genisis and misfit!
I believe the helper you mean is the default logout dialog? Your command gives me:
$ /usr/lib/xfce4/xfsm-shutdown-helper
XFSM_SUDO_DONE  >enter<
FAILED
But I can access the logout dialog with the command xfce4-session-logout. i don't want to use this as I have just got suspend to work and this can't is not included in the default logout dialog, so I want to create my own.
I don't want the session to be saved anyway. But are there further risks?

Offline

#5 2010-04-26 23:50:45

fi-dschi
Member
Registered: 2007-09-16
Posts: 19

Re: Shutdown from xserver harmful?

Maybe you find an answer there: http://bbs.archlinux.org/viewtopic.php?id=87839

Offline

#6 2010-04-27 08:34:10

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Shutdown from xserver harmful?

I found Dieters argument convincing: shutdown sends SIGTERM to all processes. That should make all applications exit gracefully. If it doesn't, there is a problem, but (a) the problem is with the application and (b) the application will probably also misbehave if you shutdown via the DE (or if you close its window).

Last edited by grey (2010-04-27 08:34:28)


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

Board footer

Powered by FluxBB