Expand description
Installing isb serve as a systemd user service.
The unit runs the isb binary that installed it, by its canonical path. The
installer’s path (~/.local/bin/isb) stays put across isb update, so a
restart picks up the new binary; a version manager that keeps each
version in its own directory (a deprecated mise install) pins that
version, and the service must be installed again after an upgrade. Settings live in an environment file that is
created once and then left to the user.
Structs§
Constants§
- CREDENTIAL_
FILE - The credential file
isb serve installwrites, under the config dir. - DEFAULT_
LISTEN - LISTEN_
ENV - UNIT_
NAME
Functions§
- credential_
path - The credential’s path as the unit names it:
%h/...under the home directory, else absolute; escaped for a unit file either way. - install_
user_ service - Write the unit and env file, (re)start the service, and wait until it is healthy. Safe to run again: it updates an existing installation.
- render_
env - The env file written on first install.
- render_
unit - The unit file. No sandboxing directives: the service drives incusd and
reads the user’s projects, and most of them need a system manager anyway.
credential(fromcredential_path) loads the encrypted secrets key.