docs: remove redundant example in live reload section
This commit is contained in:
1 parent
551cfa70cd
commit
195be03036
1 file changed
+6
-19
@@ -315,24 +315,9 @@ When running in satellite mode:
|
|||||||
## Live user/password reload
|
## Live user/password reload
|
||||||
|
|
||||||
Users and passwords can be updated at runtime **without restarting** via the
|
Users and passwords can be updated at runtime **without restarting** via the
|
||||||
command PTY interface (enabled by default):
|
command PTY interface (enabled by default). PTY commands only modify the
|
||||||
|
**in-memory** configuration — to persist across reboots, also update the config
|
||||||
```bash
|
file on disk:
|
||||||
# Add or update a user (maps callsign to a password group)
|
|
||||||
echo "CFG USERS SM0ABC MyGroup" > /dev/shm/reflector_ctrl
|
|
||||||
|
|
||||||
# Add or update a password (sets the key for a password group)
|
|
||||||
echo "CFG PASSWORDS MyGroup s3cretP@ss" > /dev/shm/reflector_ctrl
|
|
||||||
```
|
|
||||||
|
|
||||||
The PTY path is set by `COMMAND_PTY` in `[GLOBAL]` (default
|
|
||||||
`/dev/shm/reflector_ctrl`).
|
|
||||||
|
|
||||||
### Persisting across reboots
|
|
||||||
|
|
||||||
PTY `CFG` commands only modify the **in-memory** configuration. They are lost
|
|
||||||
when the process restarts. To make changes permanent, **also update the config
|
|
||||||
file on disk**:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Apply immediately (in-memory, takes effect now)
|
# 1. Apply immediately (in-memory, takes effect now)
|
||||||
@@ -340,7 +325,6 @@ echo "CFG USERS SM0ABC MyGroup" > /dev/shm/reflector_ctrl
|
|||||||
echo "CFG PASSWORDS MyGroup s3cretP@ss" > /dev/shm/reflector_ctrl
|
echo "CFG PASSWORDS MyGroup s3cretP@ss" > /dev/shm/reflector_ctrl
|
||||||
|
|
||||||
# 2. Persist to disk (survives reboot)
|
# 2. Persist to disk (survives reboot)
|
||||||
# Edit the same values into svxreflector.conf:
|
|
||||||
cat >> /etc/svxlink/svxreflector.conf <<'EOF'
|
cat >> /etc/svxlink/svxreflector.conf <<'EOF'
|
||||||
|
|
||||||
[USERS]
|
[USERS]
|
||||||
@@ -355,6 +339,9 @@ Both steps are needed: the PTY gives you instant activation, the config file
|
|||||||
gives you persistence. If you only edit the file, changes take effect at next
|
gives you persistence. If you only edit the file, changes take effect at next
|
||||||
restart.
|
restart.
|
||||||
|
|
||||||
|
The PTY path is set by `COMMAND_PTY` in `[GLOBAL]` (default
|
||||||
|
`/dev/shm/reflector_ctrl`).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|||||||
Reference in new issue
Block a user