forked from bitlair/ansible
music: Fix mqtt-soundboard
This commit is contained in:
parent
d0ecc5f105
commit
5d708d2808
4 changed files with 16 additions and 19 deletions
16
roles/music/templates/mqtt-soundboard.service
Normal file
16
roles/music/templates/mqtt-soundboard.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=MQTT Soundboard
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/lib/python3/dist-packages/mqtt-soundboard.py /etc/mqtt-soundboard.yaml
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
User=root
|
||||
Environment="XDG_RUNTIME_DIR=/run/user/{{ music_audio_user_id }}"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue