Fix TM1 service file to be executed after wifi-ready 93/206093/1 accepted/tizen/unified/20190516.053132 submit/tizen/20190515.040421
authorWootak Jung <wootak.jung@samsung.com>
Tue, 14 May 2019 07:33:13 +0000 (16:33 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 14 May 2019 07:39:25 +0000 (16:39 +0900)
After=multi-user.target causes cyclic dependency because
this service is executed before multi-user.target phase.
Moreover, in TM1, bluetooth-frwk should be executed after
wifi-ready.
sleep is required to wait for completion of wifi-ready

Change-Id: I20a1b063f48523c19cefb829faa0bde0e52eadaf

packaging/bluetooth-frwk-mobile-sprd.service

index 6be3c6c..fe84c39 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=Bluetooth framework
-After=multi-user.target
+After=wifi-ready.service
 
 [Service]
 User=network_fw
@@ -9,6 +9,7 @@ SmackProcessLabel=System
 SupplementaryGroups=priv_mediastorage priv_externalstorage
 Type=dbus
 BusName=org.projectx.bt
+ExecStartPre=/bin/sleep 2
 ExecStart=/usr/bin/bt-service
 KillMode=process