[Unit]
Description=Pi Car Companion Bluetooth bridge
After=bluetooth.service pi-car-companion.service
Requires=bluetooth.service
Wants=pi-car-companion.service

[Service]
Type=simple
ExecStart=/usr/local/libexec/pi-car-companion-bluetooth
ExecStartPost=-/usr/bin/timeout 10 /usr/bin/btmgmt add-adv -c -u 6c7a0001-7c6d-4f74-9bb0-c5a4e5efc001 1
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictRealtime=true
LockPersonality=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_BLUETOOTH

[Install]
WantedBy=multi-user.target
