Remove executing bluetooth-stak-up.service before bluez-start
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluez-start.service
index 804a615..87c044b 100644 (file)
@@ -1,12 +1,18 @@
 [Unit]
-Description=Service to run Bluetoothd normally
+Description=Bluetooth service (Bluez)
+Documentation=man:bluetoothd(8)
+Requires=bluetooth-stack-up.service
 
 [Service]
-Type=oneshot
+User=network_fw
+Group=network_fw
+Type=dbus
+BusName=org.bluez
+ExecStart=/usr/libexec/bluetooth/bluetoothd -d -C
+Capabilities=cap_net_admin,cap_net_raw,cap_net_bind_service,cap_dac_override=i
+SecureBits=keep-caps
 SmackProcessLabel=System
-ExecStartPre=/usr/bin/rm -f /run/.bluez_start
-ExecStart=/usr/bin/systemctl start --no-block bluetooth.service
-RemainAfterExit=yes
-SuccessExitStatus=1
-StartLimitInterval=1
-StartLimitBurst=10
+KillMode=process
+
+[Install]
+WantedBy=multi-user.target