systemd: Add unit to export dlog debug variables globally
[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/.platformloggingon
7
8 [Service]
9 Type=oneshot
10 ExecStart=/bin/sh -c '/usr/bin/systemctl set-environment TIZEN_PLATFORMLOGGING_MODE=1 TIZEN_DLOG_LEVEL=$(cat /opt/etc/.dloglevel)'
11
12 [Install]
13 WantedBy=basic.target
14