Skip to main content

listener

Function listener 

Source
pub fn listener(dir: &Path, activation_fd: Option<OwnedFd>) -> Result<Listener>
Expand description

Listener for the report server: activation_fd (from take_activation_fd) if systemd passed one, otherwise a socket monitord binds in dir itself.

Must run inside the runtime that will serve it, as the listener registers with that runtime’s reactor. dir is never created: a missing /run/systemd/report means systemd predates the report framework, and the directory belongs to systemd.