[Unit] Description=FlowerCore Divoom DM Agent Bluetooth executor Documentation=https://github.com/astoltz/FlowerCore.Notes/blob/master/docs/standards/divoom-tv-hdmi-multitarget-render-substrate.md Wants=network-online.target After=network-online.target bluetooth.service Requires=bluetooth.service ConditionPathExists=<%= $agent_binary_path %> ConditionPathExists=<%= $registration_path %> ConditionPathExists=<%= $divoom_install_dir %>/bt-link.sh ConditionPathExists=<%= $divoom_install_dir %>/bt-reset.sh ConditionPathExists=<%= $divoom_install_dir %>/audio-link.sh [Service] Type=simple User=stoltz Group=stoltz WorkingDirectory=<%= $agent_install_dir %> Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1 Environment=FLOWERCORE_DM_DEVICE_REGISTRATION=<%= $registration_path %> Environment=Divoom__Bluetooth__DeviceInfoIsRenderProof=false Environment=Divoom__Bluetooth__VisibleRenderProofRequired=true Environment=Divoom__Bluetooth__A2dpDefaultState=off ExecStart=<%= $agent_binary_path %> --mode=Pi --device-id=<%= $device_id %> --dm-web-url=<%= $dm_web_url %> --registration=<%= $registration_path %> Restart=on-failure RestartSec=10s StartLimitBurst=3 StartLimitIntervalSec=300s SupplementaryGroups=bluetooth audio dialout NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=true ReadWritePaths=<%= $state_dir %> <%= $log_dir %> [Install] WantedBy=multi-user.target