Use the kill command instead of killall
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluetooth-hci-logger.service
index f677940..ceb1313 100644 (file)
@@ -2,12 +2,14 @@
 Description=Service to run BT HCI logger normally
 
 [Service]
-Type=oneshot
 User=network_fw
 Group=network_fw
+Type=oneshot
 SmackProcessLabel=System
+ExecStartPre=/usr/bin/rm -f /run/.hci_logger_start
 ExecStart=/usr/etc/bluetooth/bt-run-hci-logger.sh normal start btmon
-ExecStop=/usr/etc/bluetooth/bt-run-hci-logger.sh normal stop
-RemainAfterExit=yes
+RemainAfterExit=no
 StandardOutput=journal+console
-StandardError=inherit
+SuccessExitStatus=1
+StartLimitInterval=1
+StartLimitBurst=10