Power
The power backend provides remote reboot and power-off via the org.freedesktop.login1 D-Bus interface. Each capability (reboot, power-off) can be individually enabled or disabled in config.
The odio installer auto-detects whether the user has permission to reboot/power-off via logind D-Bus and configures the backend accordingly.
Endpoints
Section titled “Endpoints”Capabilities
Section titled “Capabilities”GET /power/Returns which power actions are available.
Actions
Section titled “Actions”POST /power/power_offPOST /power/rebootEvents
Section titled “Events”| Event | Trigger |
|---|---|
power.action | Reboot or power-off triggered |
Configuration
Section titled “Configuration”power: enabled: true capabilities: poweroff: true reboot: trueSystem setup
Section titled “System setup”On headless systems, a polkit rule is required to allow the odio user to reboot and power off. The odio installer handles this automatically. For standalone installations, see Configuration — Power management.