Harden API uptime with systemd ownership guard and watchdog
This commit is contained in:
parent
ab6ad85db7
commit
b089dc1639
10 changed files with 93 additions and 7 deletions
|
|
@ -34,6 +34,21 @@ Health check:
|
|||
curl -s http://127.0.0.1:8787/health
|
||||
```
|
||||
|
||||
Watchdog pruefen:
|
||||
|
||||
```bash
|
||||
sudo systemctl status staysense-watchdog.timer --no-pager
|
||||
sudo journalctl -u staysense-watchdog.service -n 80 --no-pager
|
||||
```
|
||||
|
||||
## DB Read-Only Sofortfix
|
||||
|
||||
```bash
|
||||
sudo chown -R staysense:staysense /opt/staysense/data
|
||||
sudo chmod 2775 /opt/staysense/data
|
||||
sudo systemctl restart staysense-api.service
|
||||
```
|
||||
|
||||
## Backup
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue