From dc653bf487bae9d1ddf794442bf4176fee173b41 Mon Sep 17 00:00:00 2001 From: Jan Klötzke Date: Wed, 29 Nov 2017 07:43:44 +0100 Subject: 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. --- docs/TRANSIENT-SETTINGS.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/TRANSIENT-SETTINGS.md') diff --git a/docs/TRANSIENT-SETTINGS.md b/docs/TRANSIENT-SETTINGS.md index 506bef9255..798793f3ee 100644 --- a/docs/TRANSIENT-SETTINGS.md +++ b/docs/TRANSIENT-SETTINGS.md @@ -286,6 +286,7 @@ Most service unit settings are available for transient units. ✓ RestartSec= ✓ TimeoutStartSec= ✓ TimeoutStopSec= +✓ TimeoutAbortSec= ✓ TimeoutSec= ✓ RuntimeMaxSec= ✓ WatchdogSec= -- cgit v1.2.3