module

MJ::Arcana::Systemd

Tells systemd how the service is doing, for a unit with Type=notify: READY=1 once mj:camera and mj:voice have joined the bus, so a unit ordered After=mj-arcana.service (the game, on the Overlore box) starts only when mj can answer (@overlore for Thomas, 2026-10-25).

The message is one datagram to the socket named in NOTIFY_SOCKET. A leading '@' names the abstract namespace: a NUL in its place, and an address length that counts only the name. Socket::UNIXAddress always passes the whole sockaddr_un, which turns an abstract name into a different one padded with NULs, so the address is built here.

Constants

ENV_VAR = "NOTIFY_SOCKET"

Class methods

notify(state : String, socket : String | Nil = ENV[ENV_VAR]?) : Bool

Sends state (lines such as "READY=1"); false, sending nothing, outside systemd.

Source