summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Klötzke <Jan.Kloetzke@preh.de>2017-11-29 07:43:44 +0100
committerLennart Poettering <lennart@poettering.net>2019-04-12 17:32:52 +0200
commitdc653bf487bae9d1ddf794442bf4176fee173b41 (patch)
treeec2ca709c4d1bdf14dee5252807c8c7e3cb359f0 /test
parent1ace223ca74032a224950665438311eb688f1e05 (diff)
downloadsystemd-dc653bf487bae9d1ddf794442bf4176fee173b41.tar.gz
service: handle abort stops with dedicated timeout
When shooting down a service with SIGABRT the user might want to have a much longer stop timeout than on regular stops/shutdowns. Especially in the face of short stop timeouts the time might not be sufficient to write huge core dumps before the service is killed. This commit adds a dedicated (Default)TimeoutAbortSec= timer that is used when stopping a service via SIGABRT. In all other cases the existing TimeoutStopSec= is used. The timer value is unset by default to skip the special handling and use TimeoutStopSec= for state 'stop-watchdog' to keep the old behaviour. If the service is in state 'stop-watchdog' and the service should be stopped explicitly we still go to 'stop-sigterm' and re-apply the usual TimeoutStopSec= timeout.
Diffstat (limited to 'test')
-rw-r--r--test/fuzz/fuzz-unit-file/directives.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-unit-file/directives.service b/test/fuzz/fuzz-unit-file/directives.service
index 86e59184d7..fe6b1be302 100644
--- a/test/fuzz/fuzz-unit-file/directives.service
+++ b/test/fuzz/fuzz-unit-file/directives.service
@@ -227,6 +227,7 @@ TimeoutIdleSec=
TimeoutSec=
TimeoutStartSec=
TimeoutStopSec=
+TimeoutAbortSec=
Transparent=
TriggerLimitBurst=
TriggerLimitIntervalSec=
@@ -686,6 +687,7 @@ DefaultTasksAccounting=
DefaultTasksMax=
DefaultTimeoutStartSec=
DefaultTimeoutStopSec=
+DefaultTimeoutAbortSec=
DefaultTimerAccuracySec=
DumpCore=
HibernateMode=