diff --git a/README.md b/README.md index 3312236..2134ba2 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,18 @@ http://raspberrypi:9898 ### Systemd installation -Follow the template in `misc/gamma-box.service` (modify `WorkingDirectory` and `User` following your installation). You can then install and activate the service to runs as a daemon: +Follow the template in `misc/gamma-box.service` (modify `WorkingDirectory`, `ExecStart` and `User` following your installation). You can then install and activate the service to runs as a daemon: ```sh sudo cp ./misc/gamma-box.service /etc/systemd/system/ sudo systemctl daemon-reload -sudo systemctl enable gamma-box.service +sudo systemctl enable gamma-box.service --now +``` + +Check its logs: + +```sh +sudo journalctl -u gamma-box.service -f -n 100 ``` ------- diff --git a/misc/gamma-box.service b/misc/gamma-box.service index 9d10c0d..5e5226c 100644 --- a/misc/gamma-box.service +++ b/misc/gamma-box.service @@ -3,7 +3,7 @@ Description=Gamma Box After=network.target [Service] -ExecStart=pipenv run gunicorn -k eventlet -w 1 --bind 0.0.0.0:9898 app:app +ExecStart=/home/canard/.local/bin/pipenv run gunicorn -k eventlet -w 1 --bind 0.0.0.0:9898 app:app WorkingDirectory=/home/canard/git/GammaBox # For old boards, force revision code # See https://rpi-lgpio.readthedocs.io/en/latest/differences.html#pi-revision