System  D Support
1 Daemons
sd-notify
sd-port-count
sd-port
2 Unique Identifiers
sd-id?
sd-random-id
sd-machine-id
sd-boot-id
6.12

SystemD Support

Jan Dvořák <[email protected]>

1 Daemons

 (require systemd/daemon) package: systemd

procedure

(sd-notify state)  void?

  state : string?
Informs systemd about changed daemon state. This takes a number of newline separated environment-style variable assignments in a string.

Does nothing if we are not being run under systemd.

Returns how many file descriptors have been passed.

procedure

(sd-port index)  
input-port? output-port?
  index : exact-nonnegative-integer?
Obtains ports for file descriptor at specified position. Only IPv4 and IPv6 descriptors are currently supported.

2 Unique Identifiers

 (require systemd/id) package: systemd

SystemD’s globally unique identifiers with simple hexadecimal format can be used anywhere the traditional uuids can. SystemD itself uses them to identify the local device and current boot of the system.

procedure

(sd-id? v)  boolean?

  v : any/c
Determine whether the specified value is a properly formatted SystemD identifier.

procedure

(sd-random-id)  sd-id?

Generate a new, completely random globally unique identifier.

procedure

(sd-machine-id)  sd-id?

Return the unique identifier of the local machine.

procedure

(sd-boot-id)  sd-id?

Return the unique identifier of current boot.