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.
wip/yesman
Pierre Labadens 3 years ago committed by GitHub
parent 73559e0dbc
commit abc9d96d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/programs/waybar.nix
  2. 1
      tests/modules/programs/waybar/systemd-with-graphical-session-target.service

@ -378,6 +378,7 @@ in {
ExecStart = "${cfg.package}/bin/waybar";
Restart = "always";
RestartSec = "1sec";
KillMode = "mixed";
};
Install = { WantedBy = [ "graphical-session.target" ]; };

@ -4,6 +4,7 @@ WantedBy=graphical-session.target
[Service]
BusName=fr.arouillard.waybar
ExecStart=@waybar@/bin/waybar
KillMode=mixed
Restart=always
RestartSec=1sec
Type=dbus

Loading…
Cancel
Save