systemd · Example Payload

Login1 Inhibit Example

Acquire an inhibitor lock that delays system suspend while a backup job runs. The returned FD must be held open by the caller; closing it releases the lock.

BootCgroupsContainerD-BusInitIPCJournalLinuxLoggingNetworkOpen SourcePID 1Service ManagerSystemSystemdVarlink

Login1 Inhibit Example is an example object payload from systemd, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationdescriptionrequestresponse

Example Payload

Raw ↑
{
  "operation": "Inhibit",
  "description": "Acquire an inhibitor lock that delays system suspend while a backup job runs. The returned FD must be held open by the caller; closing it releases the lock.",
  "request": {
    "what": "sleep:shutdown",
    "who": "backup-daemon",
    "why": "Ongoing snapshot upload to remote storage",
    "mode": "delay"
  },
  "response": {
    "fd": 5
  }
}