Skip to content

Commit

Permalink
Some more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Nov 24, 2024
1 parent 26ac032 commit 120c96c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

-------
Expand Down
2 changes: 1 addition & 1 deletion misc/gamma-box.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 120c96c

Please sign in to comment.