add systemd example

This commit is contained in:
postscriptum 2025-11-29 04:33:29 +02:00
parent 6b03456fb9
commit 4e53b741e9

View file

@ -116,6 +116,38 @@ soju -debug -config /home/soju/config
=> https://codeberg.org/emersion/soju/src/branch/master/contrib/soju.service => https://codeberg.org/emersion/soju/src/branch/master/contrib/soju.service
Для конфігурації на базі Debian і поточних налаштувань системного профілю, він в мене відрізняється:
``` /etc/systemd/system/soju.service
[Unit]
Description=soju IRC bouncer service
Documentation=https://soju.im/
Documentation=man:soju(1) man:sojuctl(1)
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=soju
Group=soju
RuntimeDirectory=/home/soju
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=/usr/local/bin/soju -config /home/soju/config
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
StandardOutput=file:///home/soju/debug.log
StandardError=file:///home/soju/error.log
[Install]
WantedBy=multi-user.target
```
## Клієнт ## Клієнт
Оскільки в soju немає Веб-адмінки, керування відбувається через командний рядок клієнта IRC. Оскільки в soju немає Веб-адмінки, керування відбувається через командний рядок клієнта IRC.