Deploy with systemd
Unit file
/etc/systemd/system/kanna.service:
[Unit]Description=KannaAfter=network.target
[Service]Type=simpleUser=kannaEnvironment=KANNA_PORT=3210Environment=KANNA_PASSWORD=changemeEnvironment=KANNA_HOME=/var/lib/kannaExecStart=/usr/local/bin/kannaRestart=on-failureRestartSec=3
[Install]WantedBy=multi-user.targetEnable + start
sudo systemctl daemon-reloadsudo systemctl enable --now kannasudo systemctl status kannaLogs
journalctl -u kanna -fSelf-update under systemd
The host-agnostic supervisor detects systemd and triggers systemctl restart kanna after pulling new code.