|
@@ -69,4 +69,26 @@ Here is a working unit for this:
|
|
|
### journald with socket activation
|
|
|
|
|
|
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`.
|