Update README and systemd service configuration for yourchat2. Added installation script install-systemd.sh for easier setup and modified yourchat2.service to improve service management, including environment file support and enhanced restart policies.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 17:21:03 +01:00
parent 0b91b94ae1
commit 5c4ac55f61
4 changed files with 291 additions and 9 deletions

View File

@@ -107,11 +107,26 @@ Dann verbindet sich die bestehende Bridge (`chatTcpBridge.js`) direkt mit `yourc
## Systemd (optional)
Es liegt eine Beispiel-Datei `yourchat2.service` im Projekt.
Nach Anpassung des User/Paths:
Es liegt eine Produktions-nahe Unit-Datei `yourchat2.service` im Projekt.
Zusaetzlich gibt es ein Installationsskript `install-systemd.sh`, das:
- Release-Binary baut
- Unit nach `/etc/systemd/system/yourchat2.service` installiert
- Environment-Datei unter `/etc/yourchat2/yourchat2.env` anlegt (falls nicht vorhanden)
- Service aktiviert und startet
Installation:
```bash
sudo cp yourchat2.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now yourchat2
cd ~/Programs/yourchat2
sudo ./install-systemd.sh
```
Danach Konfiguration ueber:
- `/etc/yourchat2/yourchat2.env`
Wichtige Variablen fuer produktiven Betrieb:
- `CHAT_DB_URL`
- `SECRET_KEY`