mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-19 06:22:41 +00:00
add systemd example
This commit is contained in:
parent
6b03456fb9
commit
4e53b741e9
1 changed files with 32 additions and 0 deletions
|
|
@ -116,6 +116,38 @@ soju -debug -config /home/soju/config
|
|||
|
||||
=> 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue