default timeout in the config

This commit is contained in:
2016-03-29 16:23:55 +03:00
부모 c799ab796b
커밋 00beeb15dd
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@@ -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
파일 보기

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