Skip to content

Commit

Permalink
Add autoconnect systemd service examples #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeler committed May 28, 2021
1 parent 6eb7eb8 commit 18cdb53
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions helper/ble-autoconnect-user.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Automatically connect to available bluettooth devices from config

[Service]
Environment=PATH=%h/ble-venv/bin/:/usr/bin
WorkingDirectory=%h/ble-serial/helper/
ExecStart=%h/ble-venv/bin/python ble-autoconnect.py

[Install]
WantedBy=default.target
9 changes: 9 additions & 0 deletions helper/ble-autoconnect.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Automatically connect to available bluettooth devices from config

[Service]
WorkingDirectory=/usr/lib/python3.9/site-packages/ble-serial/helper/
ExecStart=/usr/bin/python ble-autoconnect.py

[Install]
WantedBy=multi-user.target

0 comments on commit 18cdb53

Please sign in to comment.