mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
waybar: fix slow service stop (#1852)
Set the systemd user service to use "mixed" killmode, which lets waybar stop its module scripts. This fixes issues where waybar blocks shutdown until systemd sends a SIGKILL to waybar child processes.
This commit is contained in:
parent
73559e0dbc
commit
abc9d96d19
2 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,7 @@ in {
|
||||||
ExecStart = "${cfg.package}/bin/waybar";
|
ExecStart = "${cfg.package}/bin/waybar";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "1sec";
|
RestartSec = "1sec";
|
||||||
|
KillMode = "mixed";
|
||||||
};
|
};
|
||||||
|
|
||||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
|
|
|
@ -4,6 +4,7 @@ WantedBy=graphical-session.target
|
||||||
[Service]
|
[Service]
|
||||||
BusName=fr.arouillard.waybar
|
BusName=fr.arouillard.waybar
|
||||||
ExecStart=@waybar@/bin/waybar
|
ExecStart=@waybar@/bin/waybar
|
||||||
|
KillMode=mixed
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=1sec
|
RestartSec=1sec
|
||||||
Type=dbus
|
Type=dbus
|
||||||
|
|
Loading…
Reference in a new issue