fix the service file for correct service condition option 2.1b_release accepted/tizen_2.1/20130425.032937 submit/tizen_2.1/20130424.233018
authorjuho <juho80.son@samsung.com>
Wed, 17 Apr 2013 08:38:56 +0000 (17:38 +0900)
committerjuho <juho80.son@samsung.com>
Wed, 17 Apr 2013 08:39:01 +0000 (17:39 +0900)
Change-Id: I004f8cc646b27d3520edc0cd87f719e9291af5df

packaging/tizen-debug-level.service

index 9917ef5..66b32b1 100644 (file)
@@ -3,11 +3,11 @@ Description=Set tizen debug level globally
 DefaultDependencies=no
 After=opt.mount
 Before=basic.target
-ConditionFileExists=/opt/etc/dlog/.platformloggingmode
+ConditionPathExists=/opt/etc/dlog/.platformloggingmode
 
 [Service]
 Type=oneshot
-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)'
+ExecStart=/bin/sh -c '/usr/bin/systemctl set-environment TIZEN_PLATFORMLOGGING_MODE=1 TIZEN_DLOG_LEVEL=$(cat /opt/etc/dlog/.dloglevel)'
 
 [Install]
 WantedBy=basic.target