Add systemd unit for BLE alerter (after bluetooth.target)

This commit is contained in:
Cobra
2026-04-10 06:31:39 -04:00
parent 77b0cd6512
commit a40e86be10
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=BLE Alerter
After=bluetooth.target
Wants=bluetooth.target
[Service]
Type=simple
WorkingDirectory=/opt/ble_alerter
EnvironmentFile=/opt/ble_alerter/.env
ExecStart=/usr/bin/python3 /opt/ble_alerter/ble_alerter.py
Restart=always
RestartSec=10
User=root
[Install]
WantedBy=multi-user.target