feat: systemd user service file for headless deployment
Hardened unit with ProtectSystem/ProtectHome, auto-restart on failure, and ExecReload for SIGHUP hot config reload. Docs updated with setup, management, and enable-linger instructions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -684,6 +684,20 @@ Results are sent back as NOTICE messages.
|
||||
| farm_enabled, farm_interval, etc. | Farm started/stopped |
|
||||
| bind, port, password, client_tls | Warning logged (restart required) |
|
||||
|
||||
## Systemd
|
||||
|
||||
The bouncer ships with a systemd user service file. See [INSTALL.md](INSTALL.md)
|
||||
for setup. Key operations:
|
||||
|
||||
```bash
|
||||
systemctl --user start bouncer # start
|
||||
systemctl --user stop bouncer # stop
|
||||
systemctl --user reload bouncer # hot reload (SIGHUP)
|
||||
journalctl --user -u bouncer -f # follow logs
|
||||
```
|
||||
|
||||
The service restarts automatically on failure (`RestartSec=10`).
|
||||
|
||||
## Stopping
|
||||
|
||||
Press `Ctrl+C` or send `SIGTERM`. The bouncer shuts down gracefully, closing
|
||||
|
||||
Reference in New Issue
Block a user