easyeffects: Fix service hanging on system shutdown (#8145)
* easyeffects: Fix service hanging on system shutdown * Make systemd take dependencies automatically from dbus service instead of setting them manually * Add TimeoutStopSpec for 10 seconds
This commit is contained in:
parent
33f63da61a
commit
747a9a774e
1 changed files with 4 additions and 6 deletions
|
|
@ -121,12 +121,6 @@ in
|
|||
systemd.user.services.easyeffects = {
|
||||
Unit = {
|
||||
Description = "Easyeffects daemon";
|
||||
Requires = [ "dbus.service" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"graphical-session.target"
|
||||
"pipewire.service"
|
||||
];
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
|
|
@ -134,8 +128,12 @@ in
|
|||
Service = {
|
||||
ExecStart = "${cfg.package}/bin/easyeffects --gapplication-service ${presetOpts}";
|
||||
ExecStop = "${cfg.package}/bin/easyeffects --quit";
|
||||
Type = "dbus";
|
||||
BusName = "com.github.wwmm.easyeffects";
|
||||
KillMode = "mixed";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue