diff options
author | 2008-05-15 18:16:18 +0000 | |
---|---|---|
committer | 2008-05-15 18:16:18 +0000 | |
commit | 65b411e50eff2164c2874488ab597894e9cb0c52 (patch) | |
tree | 6f8f465f0267036da0c1b82a11cbd4337dc56d73 /media-sound/alsa-utils/files | |
parent | Use $ROOT for install of modprobe file (diff) | |
download | gentoo-2-65b411e50eff2164c2874488ab597894e9cb0c52.tar.gz gentoo-2-65b411e50eff2164c2874488ab597894e9cb0c52.tar.bz2 gentoo-2-65b411e50eff2164c2874488ab597894e9cb0c52.zip |
Add conf.d option to terminate processes in init script, bug 222267
(Portage version: 2.1.5)
Diffstat (limited to 'media-sound/alsa-utils/files')
-rw-r--r-- | media-sound/alsa-utils/files/alsasound.confd | 9 | ||||
-rw-r--r-- | media-sound/alsa-utils/files/alsasound.initd | 10 |
2 files changed, 15 insertions, 4 deletions
diff --git a/media-sound/alsa-utils/files/alsasound.confd b/media-sound/alsa-utils/files/alsasound.confd index 0d63dcfe647b..9f4e2cd76d44 100644 --- a/media-sound/alsa-utils/files/alsasound.confd +++ b/media-sound/alsa-utils/files/alsasound.confd @@ -32,3 +32,12 @@ LOAD_ON_START="yes" # no - Do not unload modules # yes - Unload modules UNLOAD_ON_STOP="yes" + +# KILLPROC_ON_STOP +# Do you want to kill any processes using ALSA when alsasound stops? +# Warning: may create some unexpected window behavior or +# crash running applications. +# Also, if you are not using modules, it is safe to disable this. +# no - Do not terminate ALSA processes +# yes - Kill running processes using ALSA +KILLPROC_ON_STOP="yes" diff --git a/media-sound/alsa-utils/files/alsasound.initd b/media-sound/alsa-utils/files/alsasound.initd index ac0a169a5cda..e3eb3c94880b 100644 --- a/media-sound/alsa-utils/files/alsasound.initd +++ b/media-sound/alsa-utils/files/alsasound.initd @@ -1,5 +1,5 @@ #!/sbin/runscript -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound.initd,v 1.6 2007/12/29 06:37:59 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound.initd,v 1.7 2008/05/15 18:16:18 beandog Exp $ # Copyright 2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 @@ -214,9 +214,11 @@ stop() { [ "${SAVE_ON_STOP}" = "yes" ] && save - ebegin "Killing processes using ALSA" - terminate - eend 0 + if [ "${KILLPROC_ON_STOP}" = "yes" ] ; then + ebegin "Killing processes using ALSA" + terminate + eend 0 + fi if [ -f /proc/modules ] && [ "${UNLOAD_ON_STOP}" = "yes" ]; then local ver="24" |