OpenVoiceOS/buildroot-external/rootfs-overlay/usr/lib/systemd/system/shairport-sync.service

22 lines
421 B
SYSTEMD
Raw Normal View History

[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
Requires=avahi-daemon.service
2021-10-31 19:30:37 +01:00
After=avahi-daemon.service
[Service]
Type=simple
2021-10-31 19:30:37 +01:00
User=mycroft
# 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