systemd · Capability

systemd-logind — Sessions And Power

Self-contained Naftiko capability covering systemd-logind session, user, seat, inhibitor, and power operations.

systemd-logind — Sessions And Power is a Naftiko capability published by systemd, one of 9 capabilities the APIs.io network indexes for this provider.

Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include D-Bus, Logind, Power, and Sessions.

Run with Naftiko D-BusLogindPowerSessions

Capability Spec

login1-sessions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: systemd-logind — Sessions And Power
  description: |
    Self-contained Naftiko capability covering systemd-logind session, user, seat, inhibitor,
    and power operations.
  tags:
  - D-Bus
  - Logind
  - Power
  - Sessions
  created: '2026-05-23'
  modified: '2026-05-23'
binds:
- namespace: env
  keys:
    SYSTEMD_BUS_ADDRESS: SYSTEMD_BUS_ADDRESS
capability:
  consumes:
  - type: dbus
    namespace: org.freedesktop.login1
    busName: org.freedesktop.login1
    objectPath: /org/freedesktop/login1
    description: logind session, user, seat, inhibitor, and power methods.
    resources:
    - name: sessions
      operations:
      - { name: ListSessions, method: ListSessions, description: List all active sessions. }
      - { name: GetSession, method: GetSession, description: Look up a session by id. }
      - { name: TerminateSession, method: TerminateSession, description: Terminate a session. }
      - { name: LockSession, method: LockSession, description: Request session lock. }
      - { name: UnlockSession, method: UnlockSession, description: Request session unlock. }
    - name: users
      operations:
      - { name: ListUsers, method: ListUsers, description: List logged-in users. }
      - { name: GetUser, method: GetUser, description: Look up a user by uid. }
      - { name: TerminateUser, method: TerminateUser, description: Terminate all of a user's sessions. }
    - name: seats
      operations:
      - { name: ListSeats, method: ListSeats, description: List seats. }
    - name: power
      operations:
      - { name: PowerOff, method: PowerOff, description: Power off the system. }
      - { name: Reboot, method: Reboot, description: Reboot the system. }
      - { name: Suspend, method: Suspend, description: Suspend to RAM. }
      - { name: Hibernate, method: Hibernate, description: Hibernate to disk. }
      - { name: HybridSleep, method: HybridSleep, description: Hybrid sleep. }
    - name: inhibitors
      operations:
      - { name: ListInhibitors, method: ListInhibitors, description: List active inhibitor locks. }
      - { name: Inhibit, method: Inhibit, description: Acquire an inhibitor lock. }