From 7192cf9764bd1da744616de3e23645a4b9dd1360 Mon Sep 17 00:00:00 2001 From: j1nx Date: Tue, 15 Nov 2022 11:34:08 +0100 Subject: [PATCH] Start shairport-sync user deamon with its own userbased config file --- .../home/mycroft/.config/shairport-sync/shairport-sync.conf | 6 ++++++ .../usr/lib/systemd/user/shairport-sync.service | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 buildroot-external/rootfs-overlay/home/mycroft/.config/shairport-sync/shairport-sync.conf diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.config/shairport-sync/shairport-sync.conf b/buildroot-external/rootfs-overlay/home/mycroft/.config/shairport-sync/shairport-sync.conf new file mode 100644 index 00000000..3d9b7b69 --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/mycroft/.config/shairport-sync/shairport-sync.conf @@ -0,0 +1,6 @@ +general = { + name = "OpenVoiceOS"; + output_backend = "pa"; + dbus_service_bus = "session"; + mpris_service_bus = "session"; +}; diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/user/shairport-sync.service b/buildroot-external/rootfs-overlay/usr/lib/systemd/user/shairport-sync.service index c15d5e72..00e8f914 100644 --- a/buildroot-external/rootfs-overlay/usr/lib/systemd/user/shairport-sync.service +++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/user/shairport-sync.service @@ -7,7 +7,7 @@ After=pulseaudio.service After=avahi-daemon.service [Service] -ExecStart=/usr/bin/shairport-sync +ExecStart=/usr/bin/shairport-sync -c %h/.config/shairport-sync/shairport-sync.conf Restart=always RestartSec=5