music: Extend Trollibox installation
This commit is contained in:
parent
f8dd32b234
commit
7356db2b8a
5 changed files with 46 additions and 0 deletions
19
roles/music/templates/trollibox.service
Normal file
19
roles/music/templates/trollibox.service
Normal file
|
@ -0,0 +1,19 @@
|
|||
#
|
||||
# Managed by Ansible
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Trollibox
|
||||
After=mpd.service network.target
|
||||
Requires=mpd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
ExecStart=/opt/trollibox/bin/trollibox -conf /etc/trollibox.yaml
|
||||
User={{ music_audio_user }}
|
||||
Group={{ music_audio_user }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue