Add systemd unit for BLE alerter (after bluetooth.target)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user