Modify the bt-stack-up.sh in common profile
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluetooth-hci-logger.service
index 5ca528d..ceb1313 100644 (file)
@@ -2,11 +2,14 @@
 Description=Service to run BT HCI logger normally
 
 [Service]
+User=network_fw
+Group=network_fw
 Type=oneshot
-User=root
-Group=root
+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