Modify the service file 35/130635/1 accepted/tizen/unified/20170531.082453 submit/tizen/20170523.092719
authorHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 23 May 2017 07:05:04 +0000 (16:05 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 23 May 2017 07:05:46 +0000 (16:05 +0900)
Change-Id: If124243661007327256587fce820a39d74457f95
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
packaging/bluez.spec
src/bluetooth.service.in

index 42d5729..98c0643 100755 (executable)
@@ -298,7 +298,7 @@ install -D -m 0755 tools/obexctl %{buildroot}%{_bindir}/obexctl
 #if "tv"
 mkdir -p %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/
 ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.service
-ln -sf ../bluetooth-frwk.service %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
+ln -sf ../bluetooth.service %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
 #endif
 
 mkdir -p %{buildroot}%{upgrade_script_path}
@@ -414,9 +414,11 @@ ln -sf main.conf.wearable %{_sysconfdir}/bluetooth/main.conf
 %preun profile_wearable
 rm %{_sysconfdir}/bluetooth/main.conf
 %files profile_wearable
+%manifest %{name}.manifest
 %{_sysconfdir}/bluetooth/main.conf.wearable
 
 %files profile_tv
+%manifest %{name}.manifest
 %{_sysconfdir}/bluetooth/main.conf
 %{_libpath}/systemd/system/bluetooth.service
 %{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
@@ -424,6 +426,7 @@ rm %{_sysconfdir}/bluetooth/main.conf
 %{_datadir}/dbus-1/system-services/org.bluez.service
 
 %files profile_common
+%manifest %{name}.manifest
 %{_sysconfdir}/bluetooth/main.conf
 
 %changelog
index e41c2da..98b8064 100755 (executable)
@@ -1,16 +1,16 @@
 [Unit]
 Description=Bluetooth service
 Documentation=man:bluetoothd(8)
+DefaultDependencies=no
 
 [Service]
 Type=dbus
 BusName=org.bluez
 ExecStart=/usr/libexec/bluetooth/bluetoothd -d -C
-NotifyAccess=main
 CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
 LimitNPROC=1
-ProtectHome=true
-ProtectSystem=full
+SmackProcessLabel=System
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target