32 lines
1.2 KiB
INI
32 lines
1.2 KiB
INI
# Spotify Connect receiver — shared between both audio-endpoint image variants
|
|
# (arm64/Raspberry Pi and amd64/mini PC). Installed to
|
|
# /etc/systemd/system/spotify-connect.service by each variant's build
|
|
# tooling — see hosts/audio-endpoint/README.md.
|
|
#
|
|
# Deliberately architecture-independent and backend-independent: ExecStart points
|
|
# at the shared spotify-connect-start wrapper (also in this directory) rather than
|
|
# hardcoding librespot or spotifyd directly, since which one is actually present
|
|
# depends on the apt-first/documented-fallback install logic each variant's own
|
|
# hook runs (mirroring hosts/thin-client's 0500-spotify-connect.hook.chroot) — one
|
|
# static unit works regardless of which backend that resolved to.
|
|
[Unit]
|
|
Description=Spotify Connect receiver (headless audio endpoint)
|
|
After=network-online.target sound.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/spotify-connect-start
|
|
Restart=always
|
|
RestartSec=5
|
|
User=spotify-connect
|
|
Group=audio
|
|
SupplementaryGroups=audio
|
|
# No filesystem access needed beyond ALSA device nodes and the network.
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|