default timeout in the config

This commit is contained in:
Jack L. Frost 2016-03-29 16:23:55 +03:00
parent c799ab796b
commit 69a1c39cbc
2 changed files with 4 additions and 1 deletions

View File

@ -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

2
rc.in
View File

@ -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