Run Wanaku as a systemd service
The deploy/systemd/wanaku.service file is a template for convenience. Review it and adapt it to your system before you use it.
Paths
The template uses these paths:
| Item | Path |
|---|---|
| Binary | /usr/local/bin/wanaku-server |
| Configuration file | /etc/wanaku/wanaku.yaml (optional) |
| Environment file | /etc/wanaku/wanaku.env (optional) |
| Persistence directory | /var/lib/wanaku |
Install the service
Install the binary in
/usr/local/bin. Read Install the Wanaku server and CLI.Create the
wanakusystem user:bashsudo useradd --system --home-dir /var/lib/wanaku --shell /usr/sbin/nologin wanakuInstall the unit file:
bashsudo install -m 0644 deploy/systemd/wanaku.service /etc/systemd/system/wanaku.serviceOptional: create
/etc/wanaku/wanaku.yamland/etc/wanaku/wanaku.env. Put secrets inwanaku.envand set its mode to0600.Start the service:
bashsudo systemctl daemon-reload sudo systemctl enable --now wanakuExamine the logs:
bashjournalctl -u wanaku -f
Next steps
- Pass secrets to the Wanaku server: put the secrets for
wanaku.yamlin the environment file. - Persist registry and revision state: learn what the persistence directory keeps.
- Secure a Wanaku deployment: protect the ports before other users connect.