Skip to content

Commit

Permalink
Add a systemd service file for sml-mqtt-bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdcr committed Nov 24, 2020
1 parent 77f1a1e commit 81f08bd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/sml-mqtt-bridge.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=SML-MQTT-Bridge
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/sml-mqtt-bridge.py --hass
Restart=on-failure
RestartSec=5s
DynamicUser=yes
StateDirectory=sml-mqtt-bridge
DevicePolicy=closed
DeviceAllow=char-ttyUSB
SupplementaryGroups=dialout

[Install]
WantedBy=multi-user.target

0 comments on commit 81f08bd

Please sign in to comment.