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:
25
README.md
25
README.md
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user