docs: update from PM2 to systemd
This commit is contained in:
parent
bcc19763ad
commit
586f4994a6
1 changed files with 7 additions and 30 deletions
37
README.md
37
README.md
|
|
@ -86,40 +86,17 @@ Beide zijn uitgesloten van git via `.gitignore`.
|
||||||
|
|
||||||
### Starten (nextcloud — huidig)
|
### 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
|
```bash
|
||||||
# SSH naar nextcloud
|
# Status
|
||||||
ssh aiaiaiaiagent@nextcloud
|
ssh aiaiaiaiagent@nextcloud "sudo -A systemctl status dienst-bot"
|
||||||
|
|
||||||
# Starten
|
# Herstarten
|
||||||
cd ~/whatsapp-scripts/dienst_echo_whatsappgroep
|
ssh aiaiaiaiagent@nextcloud "sudo -A systemctl restart dienst-bot"
|
||||||
pm2 start src/index.js --name dienst-bot
|
|
||||||
pm2 save
|
|
||||||
```
|
|
||||||
|
|
||||||
### Stoppen
|
# Logs volgen
|
||||||
|
ssh aiaiaiaiagent@nextcloud "sudo -A journalctl -u dienst-bot -n 50 -f"
|
||||||
```bash
|
|
||||||
pm2 stop dienst-bot
|
|
||||||
```
|
|
||||||
|
|
||||||
### Herstarten
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pm2 restart dienst-bot
|
|
||||||
```
|
|
||||||
|
|
||||||
### Status
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pm2 status
|
|
||||||
```
|
|
||||||
|
|
||||||
### Logs bekijken
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pm2 logs dienst-bot
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Oude Mac Mini (niet meer actief)
|
### Oude Mac Mini (niet meer actief)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue