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

Re: how to make gnome SHUT DOWN when I say SHUT DOWN



On Fri, 15 Aug 2014, Britton Kerin wrote:
> Sometimes firefox doesn't really exit (despite all its windows being closed)
> so when I say shutdown gnome pops up this dialog asking if I want to
> shutdown despite a running process.  Then my laptop gets put in its bag
> and tries to cook itself to death.
> 
> Is there a way to explain to gnome that when I say shutdown, I mean
> SHUTDOWN NOW, REGARDLESS OF STUPID BROKEN PROCESSES?

Yes.  Give yourself permission to "sudo shutdown", and add a .desktop file
that calls "sudo shutdown -h now".  Test it before you trust it will work.

You will not be given any chances to cancel the shutdown/reboot once you
issue the shutdown command.  You have been warned.

For reboot, "sudo shutdown -r now" should do.  Same caveats.

This orders the init system to immediately begin an ordered, clean
shutdown/reboot sequence, and should work for any desktop environment.

You're still subject to the init system waiting for services that are slow
to stop, though.  This may result in a 30s-90s wait before the init system
decides to go into a SIGKILL spree.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: