docs: update from PM2 to systemd

This commit is contained in:
Eddy 2026-06-19 01:00:33 +02:00
commit 586f4994a6

View file

@ -86,40 +86,17 @@ Beide zijn uitgesloten van git via `.gitignore`.
### Starten (nextcloud — huidig)
De bot draait op **nextcloud** via **PM2** (gemigreerd van Mac Mini LaunchDaemon, juni 2026).
De bot draait op **nextcloud** via **systemd** (gemigreerd van Mac Mini LaunchDaemon → PM2, nu systemd).
```bash
# SSH naar nextcloud
ssh aiaiaiaiagent@nextcloud
# Status
ssh aiaiaiaiagent@nextcloud "sudo -A systemctl status dienst-bot"
# Starten
cd ~/whatsapp-scripts/dienst_echo_whatsappgroep
pm2 start src/index.js --name dienst-bot
pm2 save
```
# Herstarten
ssh aiaiaiaiagent@nextcloud "sudo -A systemctl restart dienst-bot"
### Stoppen
```bash
pm2 stop dienst-bot
```
### Herstarten
```bash
pm2 restart dienst-bot
```
### Status
```bash
pm2 status
```
### Logs bekijken
```bash
pm2 logs dienst-bot
# Logs volgen
ssh aiaiaiaiagent@nextcloud "sudo -A journalctl -u dienst-bot -n 50 -f"
```
### Oude Mac Mini (niet meer actief)