Skip to main content

Crate bupha_systemd

Crate bupha_systemd 

Source
Expand description

bupha-deploy — install-time helpers so users never copy files: bupha deploy service writes + enables the systemd unit, bupha deploy webhook registers the GitHub hook, and bupha deploy env seeds the secrets env file.

Structs§

SystemdService
systemd impl of the Service port.

Functions§

disable_service
Disable + remove the user unit. Best-effort stop first — an absent or never-enabled unit still gets its file removed.
enable_service
systemctl –user daemon-reload + enable –now. Needs loginctl enable-linger (once) to survive logout/boot.
write_env_skeleton
Seed ~/.config/bupha/env with the secret names (empty values — never invent secrets).
write_service_unit
Render the user unit. unit is a systemd user service running bupha watch; the watcher spawns the configured tunnel itself.