comando shutdown para o GNOME

4

Eu uso o ícone no canto superior direito do GNOME Shell para desligar meu sistema.

Qual comando é usado para desligar o sistema?

  • halt
  • shutdown -h now
  • Algo completamente diferente?

    
por A.B. 30.05.2015 / 16:00

1 resposta

6

O comando usado para desligar é:

dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true

Para entender

man systemd-logind

systemd-logind is a system service that manages user logins. It is
       responsible for:

       ·   Keeping track of users and sessions, their processes and their idle
           state

       ·   Providing PolicyKit-based access for users to operations such as
           system shutdown or sleep

       ·   Implementing a shutdown/sleep inhibition logic for applications

       ·   Handling of power/sleep hardware keys

       ·   Multi-seat management

       ·   Session switch management

       ·   Device access management for users

       ·   Automatic spawning of text logins (gettys) on virtual console
           activation and user runtime directory management

Agora leia para o wiki do systemd / logind link

    
por Maythux 04.06.2015 / 12:41