- Copy the service file to the systemd service dir
sudo cp ~/gowaker/scripts/gowaker.service /etc/systemd/system/gowaker.service
- Enable the service
sudo systemctl enable /etc/systemd/system/gowaker.service
- Start the service
sudo systemctl start gowaker.service
Secrets are managed by a systemd override. See https://serverfault.com/a/413408.
To update, run sudo systemctl edit gowaker
If the systemd service file is updated:
- Copy the updated file
sudo cp ~/gowaker/scripts/gowaker.service /etc/systemd/system/gowaker.service
- Reload the daemon
sudo systemctl daemon-reload