change set the platformlogging mode on method in tizen-debug-level.service
[framework/system/dlog.git] / packaging / tizen-debug-level.service
index 563de1e..9917ef5 100644 (file)
@@ -7,7 +7,7 @@ ConditionFileExists=/opt/etc/dlog/.platformloggingmode
 
 [Service]
 Type=oneshot
-ExecStart=/bin/sh -c '/usr/bin/systemctl set-environment TIZEN_PLATFORMLOGGING_MODE=1 TIZEN_DLOG_LEVEL=$(cat /opt/etc/dlog/.dloglevel)'
+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)'
 
 [Install]
 WantedBy=basic.target