Add user and group option in systemd service files
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluetooth-address.service
index a79a46c..a723dcd 100644 (file)
@@ -4,9 +4,13 @@
 
 [Unit]
 Description=Generate Bluetooth Address
+ConditionPathExists=/usr/etc/bluetooth/bt-set-addr.sh
 
 [Service]
 Type=oneshot
+User=network_fw
+Group=network_fw
+SmackProcessLabel=System
 ExecStart=/usr/etc/bluetooth/bt-set-addr.sh
 RemainAfterExit=yes