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