1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 05:47:29 +02:00

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
This commit is contained in:
Dee Anzorge 2024-01-13 18:52:33 +01:00 committed by Mikilio
parent 28215db303
commit 1fd55da2a1
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -40,6 +40,10 @@ in {
ExecStart = "${cfg.package}/bin/listenbrainz-mpd"; ExecStart = "${cfg.package}/bin/listenbrainz-mpd";
Restart = "always"; Restart = "always";
RestartSec = 5; RestartSec = 5;
Type = if lib.versionAtLeast cfg.package.version "2.3.2" then
"notify"
else
"simple";
}; };
Install.WantedBy = [ "default.target" ]; Install.WantedBy = [ "default.target" ];
}; };