Harden API uptime with systemd ownership guard and watchdog

This commit is contained in:
Oliver 2026-02-17 17:18:11 +01:00
parent ab6ad85db7
commit b089dc1639
No known key found for this signature in database
10 changed files with 93 additions and 7 deletions

View file

@ -5,6 +5,7 @@
```bash
systemctl status staysense-api.service --no-pager
systemctl status staysense-import.timer --no-pager
systemctl status staysense-watchdog.timer --no-pager
curl -s https://staysense.vanityontour.de/api/health
```
@ -13,6 +14,7 @@ curl -s https://staysense.vanityontour.de/api/health
```bash
journalctl -u staysense-api.service --no-pager -n 120
journalctl -u staysense-import.service --no-pager -n 120
journalctl -u staysense-watchdog.service --no-pager -n 120
```
## Häufige Fehlerbilder
@ -25,6 +27,12 @@ journalctl -u staysense-import.service --no-pager -n 120
- Datenverzeichnisrechte prüfen
- Service-User und Besitzrechte prüfen
```bash
chown -R staysense:staysense /opt/staysense/data
chmod 2775 /opt/staysense/data
systemctl restart staysense-api.service
```
3. Importdaten veraltet
- Timer-Status prüfen
- Import-Service manuell starten