Skip to content

Commit

Permalink
docs: better service
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpdev committed Sep 8, 2024
1 parent e535b38 commit d00f845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ sudo cp ./rspi-bios.service /lib/systemd/system/
sudo systemctl enable rspi-bios.service
```

In production, I recommend creating these directories/files:
In production, I recommend creating/using these directories:

- `/usr/local/bin/` (place `rspi-bios` here)
- `/var/log/rspi-bios/`
- `/etc/rspi-bios/certs/{cert,key}.pem`
- `/usr/share/rspi-bios/html/index.html`
- `/etc/rspi-bios/certs/` (place `{cert,key}.pem` here)
- `/usr/share/rspi-bios/html/` (place `index.html` here)

### Development

Expand Down
4 changes: 2 additions & 2 deletions rspi-bios.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ StartLimitBurst=5
[Service]
Type=simple
User=piotrpdev
WorkingDirectory=/home/piotrpdev/rspi-bios
ExecStart=/home/piotrpdev/rspi-bios/rspi-bios 443
WorkingDirectory=/var/log/rspi-bios/
ExecStart=/usr/local/bin/rspi-bios 443
Restart=on-failure
RestartSec=5s

Expand Down

0 comments on commit d00f845

Please sign in to comment.