mpd-discord-rpc: restart on failure

This commit is contained in:
Ilan Joselevich 2022-06-26 02:15:50 +03:00 committed by Robert Helgesson
parent f26946858e
commit 1dbac84b84
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -48,7 +48,10 @@ in {
After = [ "graphical-session-pre.target" ]; After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.desktop" ]; PartOf = [ "graphical-session.desktop" ];
}; };
Service.ExecStart = "${cfg.package}/bin/mpd-discord-rpc"; Service = {
ExecStart = "${cfg.package}/bin/mpd-discord-rpc";
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ "graphical-session.target" ];
}; };
}; };