music: Update mpd-volume-to-mqtt script
This commit is contained in:
parent
40093a5936
commit
84e3dc8478
5 changed files with 69 additions and 0 deletions
16
roles/music/templates/mpd-volume-to-mqtt.service
Normal file
16
roles/music/templates/mpd-volume-to-mqtt.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=MPD Volume to MQTT
|
||||
After=network.target
|
||||
Requires=mpd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
ExecStart=/bin/bash /opt/mpd-volume-to-mqtt.sh
|
||||
DynamicUser=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue