ansible/roles/music/templates/librespot.service

16 lines
374 B
Desktop File

# {{ ansible_managed }}
[Unit]
Description=Spotify through Librespot
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=2s
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend pulseaudio --volume-ctrl linear
Environment="PULSE_SERVER={{ music_pulse_server }}"
User={{ music_librespot_user }}
[Install]
WantedBy=multi-user.target