Document socket activation.

This commit is contained in:
Blallo 2019-05-03 14:26:16 +02:00
parent b0cd779d61
commit f7caefdae1
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F
2 changed files with 24 additions and 1 deletions

View file

@ -69,4 +69,26 @@ Here is a working unit for this:
### journald with socket activation ### journald with socket activation
To run circologd as non-root, while listening on a root-owned socket (`/run/systemd/journal/syslog`) use To run circologd as non-root, while listening on a root-owned socket (`/run/systemd/journal/syslog`) use
socket activation socket activation. Create a unit in `/etc/systemd/system/circolog.service`:
[Unit]
Description=In-memory logging
[Service]
User=nobody
Group=nogroup
ExecStart=/usr/local/sbin/circologd -syslogd-socket "" -buffer-size 2000 -query-socket /run/circolog/query.sock
[Install]
WantedBy=multi-user.target
Then symlink the `syslog.service` unit to the newly created one:
ln -sf /etc/systemd/system/circolog.service /etc/systemd/system/syslog.service
and restart the service:
systemctl daemon-reload
systemctl restart syslog.service
Now circolog is activated and receives messages from `journald`.

View file

@ -4,5 +4,6 @@ nav:
- Install: install.md - Install: install.md
- Queries: query.md - Queries: query.md
- Hacking: hacking.md - Hacking: hacking.md
- Systemd: systemd.md
repo_url: https://git.lattuga.net/boyska/circolog repo_url: https://git.lattuga.net/boyska/circolog
repo_name: 'Repository' repo_name: 'Repository'