Skip to main content

Module systemd_setup

Module systemd_setup 

Source
Expand description

Systemd unit installation for socket activation

This module provides automatic installation of systemd user units for the service socket activation pattern.

§Usage

ⓘ
use hyprstream::cli::systemd_setup::ensure_units;

let services = &["registry".to_owned(), "policy".to_owned()];
if ensure_units(services) {
    // Systemd units are installed and ready
}

Functions§

ensure_units
Ensure systemd socket units are installed and enabled (idempotent)
is_systemd_available
Check if systemd is available