2020-01-06 21:12:43 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Shairport-sync
|
2021-10-31 19:30:37 +01:00
|
|
|
Wants=sound.target
|
|
|
|
After=sound.target
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
After=pulseaudio.service
|
2020-01-06 21:12:43 +01:00
|
|
|
Requires=avahi-daemon.service
|
2021-10-31 19:30:37 +01:00
|
|
|
After=avahi-daemon.service
|
2020-01-06 21:12:43 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2021-10-31 19:30:37 +01:00
|
|
|
User=mycroft
|
2020-01-06 21:12:43 +01:00
|
|
|
# Avahi daemon needs some time until fully ready
|
|
|
|
ExecStartPre=/bin/sleep 3
|
|
|
|
ExecStart=/usr/bin/shairport-sync
|
|
|
|
Restart=always
|
|
|
|
RestartSec=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|