sdbd: Add tizen environment to sdbd process 42/38242/2 accepted/tizen/common/20150416.120427 accepted/tizen/mobile/20150416.235331 accepted/tizen/tv/20150416.234601 accepted/tizen/wearable/20150416.234823 submit/tizen/20150416.111200
authorJiyoung Yun <jy910.yun@samsung.com>
Wed, 15 Apr 2015 08:38:09 +0000 (17:38 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Thu, 16 Apr 2015 08:58:56 +0000 (17:58 +0900)
When systemd launch the sdbd process,
it does not have any tizen environment value.
The tizen-system-env.service makes the /run/tizen-system-env from /etc/profile.d/.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I58dd8c37de649f217c1cdfd21afc0d456711db46

packaging/sdbd_device.service

index 0b92d85269ea65a8cddd0dde0f493f287b870211..6465753c2dda82ba8b5a912e83416b86193a481a 100644 (file)
@@ -1,10 +1,11 @@
 [Unit]
 Description=sdbd
 After=default.target
+Requires=tizen-system-env.service
 
 [Service]
 Type=forking
-Environment=DISPLAY=:0
+EnvironmentFile=-/run/tizen-system-env
 PIDFile=/tmp/.sdbd.pid
 RemainAfterExit=yes
 ExecStart=/usr/sbin/sdbd