9917ef53025a585d0429286602d0282ab7667b2f
[framework/system/dlog.git] / packaging / tizen-debug-level.service
1 [Unit]
2 Description=Set tizen debug level globally
3 DefaultDependencies=no
4 After=opt.mount
5 Before=basic.target
6 ConditionFileExists=/opt/etc/dlog/.platformloggingmode
7
8 [Service]
9 Type=oneshot
10 ExecStart=/bin/sh -c '/usr/bin/systemctl set-environment TIZEN_PLATFORMLOGGING_MODE=$(find /opt/etc/dlog/.platformloggingmode -type f 2>&1 | wc -l) TIZEN_DLOG_LEVEL=$(cat /opt/etc/dlog/.dloglevel)'
11
12 [Install]
13 WantedBy=basic.target
14