aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdg-autostart-generator/xdg-autostart-service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-08 15:29:17 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-06-08 22:52:42 +0100
commit986a514bab7f3b4c171d894804c9e5c4393886fe (patch)
treeca0e5d8e9ebc70b485244f76d3822df415c5d3d8 /src/xdg-autostart-generator/xdg-autostart-service.c
parentboot: Fix memory leak (diff)
downloadsystemd-986a514bab7f3b4c171d894804c9e5c4393886fe.tar.xz
systemd-986a514bab7f3b4c171d894804c9e5c4393886fe.zip
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
Diffstat (limited to 'src/xdg-autostart-generator/xdg-autostart-service.c')
-rw-r--r--src/xdg-autostart-generator/xdg-autostart-service.c2
1 files changed, 1 insertions, 1 deletions
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);