Fix HCI logger service's option to launch btmon
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluetooth-hci-logger.service
index 8f0483d..45974e2 100644 (file)
@@ -4,10 +4,10 @@ Description=Service to run BT HCI logger normally
 [Service]
 User=network_fw
 Group=network_fw
-Type=oneshot
+Type=forking
 SmackProcessLabel=System
-ExecStartPre=/usr/bin/rm -f /run/.hci_logger_start
 ExecStart=/usr/etc/bluetooth/bt-run-hci-logger.sh normal start btmon
+PIDFile=/tmp/.bt_hci_logger.pid
 StandardOutput=journal+console
 SuccessExitStatus=1
 StartLimitInterval=1