Skip to main content

handle_service_install

Function handle_service_install 

Source
pub async fn handle_service_install(
    models_dir: &Path,
    config_services: &[String],
    services_filter: Option<Vec<String>>,
    start: bool,
    enable: bool,
    target: ServiceTarget,
    verbose: bool,
    explicit_config: Option<&Path>,
    iroh_required: bool,
) -> Result<()>
Expand description

Handle service install - Idempotent setup and optional restart

  1. Run repair checks (dirs, registry, policy, signing key, git identity)
  2. Install command alias (~/.local/bin/hyprstream)
  3. Install/update systemd units (if systemd available)
  4. If start: stop → start all target services