Add user and group option in systemd service files
[platform/core/connectivity/bluetooth-tools.git] / packaging / bluetooth-address.service
1 # this Unit set Bluetooth Address, some application use the address although bluetooth doesn't turn on.
2 # especially, OSP API use it as such way.
3 #
4
5 [Unit]
6 Description=Generate Bluetooth Address
7 ConditionPathExists=/usr/etc/bluetooth/bt-set-addr.sh
8
9 [Service]
10 Type=oneshot
11 User=network_fw
12 Group=network_fw
13 SmackProcessLabel=System
14 ExecStart=/usr/etc/bluetooth/bt-set-addr.sh
15 RemainAfterExit=yes
16
17 [Install]
18 WantedBy=bluetooth.target
19