From 986a514bab7f3b4c171d894804c9e5c4393886fe Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Jun 2023 15:29:17 +0200 Subject: [PATCH] xdg-autostart-generator: extend start timeout The current start + stop timeouts for xdg autostart files are *very* short with 5s. On a busy system this might be too easy to hit even in unintended case. Apparently, the intention here was to cut the shutdown logic short. (https://github.com/systemd/systemd/issues/27919#issuecomment-1580576178) Let's hence stick to the very short timeout for that (under the assumption that apps are written in a safe enough style to not lose data if killed too early). But for starting XGD autostrat services, use our regular timeouts. See: #27919 --- src/xdg-autostart-generator/xdg-autostart-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index f8466606ba3..f3cf995ec2f 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -639,7 +639,7 @@ int xdg_autostart_service_generate_unit( "ExitType=cgroup\n" "ExecStart=:%s\n" "Restart=no\n" - "TimeoutSec=5s\n" + "TimeoutStopSec=5s\n" "Slice=app.slice\n", exec_start); -- 2.47.3