services: Add SMD630 to MQTT glue script
This commit is contained in:
parent
7e72905165
commit
24980f5e7e
7 changed files with 71 additions and 0 deletions
16
roles/services/templates/power-mqtt.service
Normal file
16
roles/services/templates/power-mqtt.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Managed by Ansible
|
||||
|
||||
[Unit]
|
||||
Description=SMD630 to MQTT Probe
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/bin/bash /var/lib/power-mqtt.sh
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
DynamicUser=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue