1
0
Fork 0

Revert "music-assistant: Tell players to restart on startup"

This hacky work-around is no longer necessary, as I've figured out why
the players don't (always) get rediscovered when the server restarts.
It turns out, Avahi on the firewall was caching responses to the mDNS PTR
requests Music Assistant makes.  Rather than forward the requests to the
other VLANs, it would respond with its cached information, but in a way
that Music Assistant didn't understand.  Setting `cache-entries-max` to
`0` in `avahi-daemon.conf` on the firewall resolved the issue.

This reverts commit 42a7964991.
pull/78/head
Dustin 2025-08-12 20:17:52 -05:00
parent e0e3eab8b6
commit 8a6b41bacc
3 changed files with 0 additions and 56 deletions

View File

@ -16,25 +16,6 @@ resources:
- music-assistant.yaml
- ingress.yaml
patches:
- patch: |
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: music-assistant
spec:
template:
spec:
containers:
- name: music-assistant
lifecycle:
postStart:
exec:
command:
- wget
- -qO-
- http://ntfy.ntfy:2586/0e386416-ac43-488c-b709-efac8e2555a3/publish?message=restart
images:
- name: ghcr.io/music-assistant/server
newTag: 2.6.0b18

View File

@ -1,22 +0,0 @@
# vim: set ft=systemd :
# In order for this to be effective, `shairport-sync.service` needs a
# configuration override to enable auto-restart, e.g.:
#
# [Service]
# Restart=always
# RestartSec=1
[Unit]
Description=Restart shairport-sync when music-assistant restarts
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/libexec/restart-sync.sh
Restart=always
RestartSec=1
[Install]
WantedBy=shairport-sync.service

View File

@ -1,15 +0,0 @@
#!/bin/sh
TOPIC=0e386416-ac43-488c-b709-efac8e2555a3
NTFY=https://ntfy.pyrocufflink.net
DELAY=10
url=$(printf '%s/%s/raw' "${NTFY}" "${TOPIC}")
curl -sN "${url}" \
| stdbuf -o0 grep restart \
| while read l; do
printf 'Restarting shairport-sync in %d seconds\n' "$DELAY" >&2
sleep $DELAY
busctl call org.gnome.ShairportSync /org/gnome/ShairportSync org.gnome.ShairportSync Quit
done