Modify the bt-stack-up.sh script
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluetooth-hci-logger.service
index f677940..3fae3a9 100644 (file)
@@ -3,11 +3,11 @@ Description=Service to run BT HCI logger normally
 
 [Service]
 Type=oneshot
-User=network_fw
-Group=network_fw
 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