From 6217b735988ef28fa07d9c4be92d06d5573defa3 Mon Sep 17 00:00:00 2001 From: Dee Anzorge Date: Sat, 13 Jan 2024 18:52:33 +0100 Subject: [PATCH] listenbrainz-mpd: use sdnotify when possible The ability for listenbrainz-mpd to notify systemd when it's ready was added in 2.3.2: https://codeberg.org/elomatreb/listenbrainz-mpd/releases/tag/v2.3.2 --- modules/services/listenbrainz-mpd.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/listenbrainz-mpd.nix b/modules/services/listenbrainz-mpd.nix index 0a55a9e46..5b949ebe5 100644 --- a/modules/services/listenbrainz-mpd.nix +++ b/modules/services/listenbrainz-mpd.nix @@ -40,6 +40,10 @@ in { ExecStart = "${cfg.package}/bin/listenbrainz-mpd"; Restart = "always"; RestartSec = 5; + Type = if lib.versionAtLeast cfg.package.version "2.3.2" then + "notify" + else + "simple"; }; Install.WantedBy = [ "default.target" ]; };