Introduce log write buffering
[platform/core/system/dlog.git] / configs / dlog_logger.service.in
1 [Unit]
2 Description=dlog logging service
3 After=systemd-tmpfiles-setup.service local-fs.target
4 Before=basic.target
5 DefaultDependencies=no
6
7 [Service]
8 Type=notify
9 #
10 # Setting TZ prevents logger from repeatedly statting /etc/localtime
11 # each time it wanted a timestamp, increasing performance (glibc feature).
12 # However, there is a tradeoff as it also sets the timezone in stone.
13 #
14 # We accept the tradeoff as without caching dlog_logger will be A LOT
15 # slower (eg. 30-60% slower). If you dare to touch setting below, be
16 # prepared to show vallgrind callgrind and perf data showing the
17 # performance penalty.
18 Environment=TZ=:/etc/localtime
19
20 User=@DLOG_SERVER_USER@
21 Group=@DLOG_SERVER_GROUP@
22 SmackProcessLabel=System
23 ExecStart=/usr/bin/dlog_logger
24 Capabilities=cap_syslog=i
25 SecureBits=keep-caps
26 Restart=always
27 LimitNOFILE=16384
28 Nice=1
29
30 [Install]
31 WantedBy=basic.target