Rename systemd unit to chat-grid.service
This commit is contained in:
@@ -68,7 +68,14 @@ cd /home/bestmidi/chgrid
|
|||||||
Logs:
|
Logs:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
journalctl -u chgrid-signaling.service -f
|
journalctl -u chat-grid.service -f
|
||||||
|
```
|
||||||
|
|
||||||
|
If you previously used `chgrid-signaling.service`, migrate once:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl disable --now chgrid-signaling.service
|
||||||
|
sudo systemctl daemon-reload
|
||||||
```
|
```
|
||||||
|
|
||||||
## 6) Apache websocket proxy
|
## 6) Apache websocket proxy
|
||||||
@@ -139,8 +146,8 @@ git pull --ff-only origin main
|
|||||||
./deploy/scripts/install_server.sh /home/bestmidi/chgrid
|
./deploy/scripts/install_server.sh /home/bestmidi/chgrid
|
||||||
|
|
||||||
# Restart signaling service
|
# Restart signaling service
|
||||||
sudo systemctl restart chgrid-signaling.service
|
sudo systemctl restart chat-grid.service
|
||||||
journalctl -u chgrid-signaling.service -n 50 --no-pager
|
journalctl -u chat-grid.service -n 50 --no-pager
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
REPO_ROOT="${1:-/home/bestmidi/chgrid}"
|
REPO_ROOT="${1:-/home/bestmidi/chgrid}"
|
||||||
UNIT_NAME="${2:-chgrid-signaling.service}"
|
UNIT_NAME="${2:-chat-grid.service}"
|
||||||
SRC_UNIT="$REPO_ROOT/deploy/systemd/$UNIT_NAME"
|
SRC_UNIT="$REPO_ROOT/deploy/systemd/$UNIT_NAME"
|
||||||
DST_UNIT="/etc/systemd/system/$UNIT_NAME"
|
DST_UNIT="/etc/systemd/system/$UNIT_NAME"
|
||||||
|
|
||||||
|
|||||||
16
deploy/systemd/chat-grid.service
Normal file
16
deploy/systemd/chat-grid.service
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Chat Grid signaling server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=bestmidi
|
||||||
|
Group=bestmidi
|
||||||
|
WorkingDirectory=/home/bestmidi/chgrid/server
|
||||||
|
Environment=PATH=/home/bestmidi/chgrid/server/.venv/bin:/usr/bin:/bin
|
||||||
|
ExecStart=/home/bestmidi/chgrid/server/.venv/bin/python main.py --config /home/bestmidi/chgrid/server/config.toml
|
||||||
|
Restart=always
|
||||||
|
RestartSec=3
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user