aboutsummaryrefslogtreecommitdiff
path: root/local/services/bt-agent.service
diff options
context:
space:
mode:
Diffstat (limited to 'local/services/bt-agent.service')
-rw-r--r--local/services/bt-agent.service18
1 files changed, 18 insertions, 0 deletions
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
+