From 69a1c39cbc0278d45a3d8092ee9bb82e0645b001 Mon Sep 17 00:00:00 2001 From: fbt Date: Tue, 29 Mar 2016 16:23:55 +0300 Subject: [PATCH] default timeout in the config --- rc.conf | 3 +++ rc.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rc.conf b/rc.conf index f0c9dd0..80e5ec7 100644 --- a/rc.conf +++ b/rc.conf @@ -40,3 +40,6 @@ cfg_mounts=( # Some temporary directories and files cfg_tmpdirs+=( '/run/lock' '/run/lock/lvm' '/run/lvm' '/run/user' ) cfg_tmpfiles+=( '/run/utmp' ) + +# How long do we wait for all processes to die nicely? +cfg_killall5_timeout=30 diff --git a/rc.in b/rc.in index a1fca5a..45f3a1c 100644 --- a/rc.in +++ b/rc.in @@ -101,7 +101,7 @@ rc.services_stop() { rc.stop_everything() { echo "Politely asking all processes to shut down..." - killall5 -s 15 -w "${cfg_killall5_timeout:-30}" + killall5 -s 15 -w "$cfg_killall5_timeout" echo "Killing the remaning ones..." killall5 -s 9