Skip to main content

Module linux

Module linux 

Source
Expand description

Linux backend: systemd user unit at $XDG_CONFIG_HOME/systemd/user/runpm-daemon.service.

install writes the unit and runs systemctl --user enable runpm-daemon.service. If systemctl is missing or fails (operator is on a non-systemd Linux, or sd-bus is unavailable in this session) the file is still written and the path is returned, with a warning.

Functionsยง

install
render_unit
Render the systemd unit file body with daemon_binary baked in.
uninstall
unit_path
Resolve the unit-file path: $XDG_CONFIG_HOME/systemd/user/runpm-daemon.service with a ~/.config/systemd/user/ fallback when XDG_CONFIG_HOME is unset.