mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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
This commit is contained in:
parent
7da9db535c
commit
986a514bab
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user