From: Lennart Poettering Date: Thu, 8 Jun 2023 13:29:17 +0000 (+0200) Subject: xdg-autostart-generator: extend start timeout X-Git-Tag: v254-rc1~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986a514bab7f3b4c171d894804c9e5c4393886fe;p=thirdparty%2Fsystemd.git 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 --- 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);