Remove ISU package requirement from the spec
[platform/core/system/dlog.git] / units / dlog_logger.service.in
1 [Unit]
2 Description=dlog logging service
3 Requires=local-fs.target
4 After=systemd-tmpfiles-setup.service local-fs.target
5 Before=basic.target
6 DefaultDependencies=no
7
8 # Note:
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).
12
13 [Service]
14 Type=notify
15 #
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.
19 #
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
25
26 User=@DLOG_SERVER_USER@
27 Group=@DLOG_SERVER_GROUP@
28 SmackProcessLabel=System
29 ExecStart=/usr/bin/dlog_logger
30 Capabilities=cap_syslog=i
31 SecureBits=keep-caps
32 Restart=on-failure
33 LimitNOFILE=16384
34 Nice=1
35
36 [Install]
37 WantedBy=basic.target