2 Description=dlog logging service
3 Requires=local-fs.target
4 After=systemd-tmpfiles-setup.service local-fs.target
9 # Requires=/After= are added dynamically via dlog-unit-generator (see systemd.generator(7)) if logger
10 # devices are available. This is required as dlog_logger has to have devices available and with proper
11 # permissions being set before it starts (as we run as 'log' user).
16 # Setting TZ prevents logger from repeatedly statting /etc/localtime
17 # each time it wanted a timestamp, increasing performance (glibc feature).
18 # However, there is a tradeoff as it also sets the timezone in stone.
20 # We accept the tradeoff as without caching dlog_logger will be A LOT
21 # slower (eg. 30-60% slower). If you dare to touch setting below, be
22 # prepared to show vallgrind callgrind and perf data showing the
23 # performance penalty.
24 Environment=TZ=:/etc/localtime
26 User=@DLOG_SERVER_USER@
27 Group=@DLOG_SERVER_GROUP@
28 SmackProcessLabel=System
29 ExecStart=/usr/bin/dlog_logger
30 Capabilities=cap_syslog=i