From 0640b403f2dc33fca3b1ca121012b98c2420ef24 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 18 Jun 2025 12:06:04 +0200 Subject: Moved the systemd configuration in it’s own file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/services/bt-agent.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 local/services/bt-agent.service (limited to 'local/services/bt-agent.service') diff --git a/local/services/bt-agent.service b/local/services/bt-agent.service new file mode 100644 index 0000000..379634e --- /dev/null +++ b/local/services/bt-agent.service @@ -0,0 +1,18 @@ +[Unit] +Description=Bluetooth Agent +After=bluetooth.service +Requires=bluetooth.service + +[Service] +Type=simple +ExecStartPre=bt-adapter --set Discoverable 1 +#ExecStart=bt-agent -c NoInputNoOutput +ExecStart=bt-agent -p /etc/bluetooth/pins +## Restart the service each 60s +#WatchdogSec=60 +#RestartSec=60 +#Restart=always + +[Install] +WantedBy=multi-user.target + -- cgit v1.2.3