Full deployment workflow
Clone the repository
Clone the Hagaki project to the expected path:Ensure the asset directories also exist at
/home/ubuntu/asset/. See Building from source for the required directory structure.Managing the service
Deploying an update
After rebuilding a new binary, restart the service with:- Re-applies ownership of the binary to the
ubuntuuser - Restarts the
hagaki.serviceunit - Prints the current service status
Removing the service
To stop Hagaki and remove it from systemd entirely:- Stops the running service
- Deletes
/lib/systemd/system/hagaki.service - Runs
systemctl daemon-reload
Viewing logs
Stream live logs from the service:Note on the ubuntu user
TheMakefile hardcodes ubuntu as the service owner in both install-service and reload-service. If you are deploying to a system where the primary user is not ubuntu, edit the chown lines in the Makefile before running these targets.