LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-27-2007, 03:38 PM   #1
jim-j
LQ Newbie
 
Registered: Nov 2003
Location: Sioux Falls SD USA
Distribution: CentOS 7
Posts: 27

Rep: Reputation: 15
Is "poweroff" hard on open apps?


I have a fairly stock Fedora Core 6 desktop which logs in automatically and starts several apps (Firefox, Evolution, Pidgin). This works great when I use my PC locally. However, I will occasionally SSH to my PC and turn it off remotely via the 'poweroff' command from the command line. Does the 'poweroff' command cause my open desktop apps (like Firefox, Evolution, etc.) to close gracefully, or is this hard on them? I.e. is it better to be in front of the computer and manually close each app or is it ok to let the poweroff process close these apps. I assume that doing a 'shutdown -h now' would have the same affect on these apps as the 'poweroff' command does?
 
Old 07-27-2007, 03:50 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might get a message about the last session being aborted when you start Firefox, but there shouldn't be any harm done. You could always use "killall -SIGQUIT firefox"; "killall -SIGQUIT firefox-bin"; etc. remotely before powering down the computer.
 
Old 07-27-2007, 03:52 PM   #3
guru68
LQ Newbie
 
Registered: Jul 2007
Location: Texas
Distribution: SuSe, Ubuntu, Mandriva
Posts: 5

Rep: Reputation: 0
During "poweroff", a shutdown (kill -9) command is sent to open processes or applications. It should not cause a problem with any of them unless they have "open files" on the system. Apps like Firefox will see it as a forced shutdown (or crash), and may attempt to recover to their previous state when they are next opened. You should not see any adverse effects from this (such as lost data, etc.). The only possible "bad" thing that could happen is if an application is actively writing to disc (i.e., Evolution auto checking mail and downloading an attachment), then you could lose that data.

Someone please correct me if I am wrong.

Thanks -

Guru
 
Old 07-27-2007, 09:54 PM   #4
jim-j
LQ Newbie
 
Registered: Nov 2003
Location: Sioux Falls SD USA
Distribution: CentOS 7
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
You might get a message about the last session being aborted when you start Firefox, but there shouldn't be any harm done. You could always use "killall -SIGQUIT firefox"; "killall -SIGQUIT firefox-bin"; etc. remotely before powering down the computer.
So "SISQUIT" is the friendliest way to stop GUI desktop apps from the command line? Based on http://en.wikipedia.org/wiki/SIGQUIT it sounds like this will leave core files. Is there a friendly command line way to stop GUI apps without generating core files?

Does anyone know if using Fedora's built in shutdown button shuts down desktop apps gracefully?

Thanks to all who have replied.
 
Old 07-28-2007, 03:40 PM   #5
Lunate
LQ Newbie
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 16

Rep: Reputation: 0
kill -sigterm (kill -15) or just kill is the normal way to stop processes.
man kill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
Cannot "shutdown -h now" or "poweroff" BlueSpirit Slackware 1 08-15-2006 12:12 PM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM
"poweroff" vs "shutdown -h now" when in X.... Megamieuwsel Linux - General 4 09-12-2004 04:47 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration