# kosa8 daemon install

Start kosa8d automatically at login (launchd on macOS, systemd on Linux)

Installs a per-user service that starts kosa8d at login and restarts it if it
crashes: a launchd agent (~/Library/LaunchAgents/com.kosa8.kosa8d.plist) on macOS, a
systemd user unit (~/.config/systemd/user/kosa8d.service) on Linux. No root.

It is started now too, unless a daemon is already running (it then takes over at
the next login) or --no-start is given. --dry-run prints the file and does nothing.

On a Linux server, `loginctl enable-linger $USER` starts it at boot rather than at
login. `kosa8 daemon uninstall` removes it.

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--dry-run` | bool | print the service file and change nothing |  |
| `--no-start` | bool | install it without starting it now |  |

---
Source: https://docs.kosa8.com/reference/daemon-install/
