Skip to main content

socket_unit

Function socket_unit 

Source
pub fn socket_unit(service: &str) -> String
Expand description

Generate a systemd socket unit for a service

The socket listens on $XDG_RUNTIME_DIR/hyprstream/{service}.sock and activates the corresponding service unit on connection.