Package: cinnamon-session Version: 6.6.4-2 Severity: normal Tags: upstream fixed-upstream
Hi, In a cinnamon-wayland session, "systemctl poweroff" or "systemctl reboot" from a terminal waits 90 seconds before the machine goes down. When systemd stops session-1.scope, it sends SIGTERM and SIGHUP to every process in it. cinnamon-session sees its components die and starts them again: Application 'cinnamon-wayland.desktop' killed by signal 1 The cinnamon-settings-daemon components are logged and restarted the same way. The new processes (cinnamon --replace with its own Xwayland, several csd-* daemons, ibus) get no signal, so the scope waits for its stop timeout: session-1.scope: Stopping timed out. Killing. session-1.scope: Killing process 3424 (cinnamon) with signal SIGKILL. session-1.scope: Killing process 3516 (Xwayland) with signal SIGKILL. The X11 session on the same system powers off with no wait. Upstream fixed this in 6.8.0 with commit 2ab40592, "csm-manager.c: Don't restart session components once the session is ending": https://www.google.com/url?q=https://github.com/linuxmint/cinnamon-session/commit/2ab4059271f7e70e03947950a8fe0668bccb207a&source=gmail&ust=1795997521316000&sa=E Its commit message says it is mainly reproducible with "systemctl reboot". The change is a short check at the start of _restart_app(), and the code it touches is the same in 6.6.4. I have not built 6.6.4 with it. Could you cherry-pick it, or upload 6.8.0? cinnamon-session 6.6.4-2, systemd 262.2-1 Thanks, Kel

