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)
|
||||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue