#gatt-server #display #reboot #logind #interface

login-poweroff-reboot

Poweroff or reboot machine using dbus interface logind

7 releases

new 0.4.4 Feb 7, 2024
0.4.0 Sep 4, 2023
0.3.0 Aug 31, 2023
0.2.4 Aug 31, 2023

#295 in Authentication

MIT license

4KB
62 lines

login-poweroff-reboot

This library create exports two functions, one for rebooting the machine, one for powering off the machine. It use dbus messages for logind under the hood. Make sure system-logind.service is running.

Dependencies

~5MB
~114K SLoC