allow options to be passed to killall5

This allows options to be passed to killall5 by the killprocs script.
This was added so that certain processes will not be killed during
shutdown.

x-Gentoo-Bug: 371625
x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371625
This commit is contained in:
William Hubbs 2011-06-23 21:52:44 -05:00
parent e152199860
commit 013e7fb9fc
3 changed files with 6 additions and 3 deletions

View File

@ -1,2 +1,2 @@
CONF+= consolefont dmesg hwclock keymaps modules
CONF+= consolefont dmesg hwclock keymaps killprocs modules
SOS= Linux

3
conf.d/killprocs Normal file
View File

@ -0,0 +1,3 @@
# If you wish to pass any options to killall5 during shutdown,
# you should do so here.
killall5_opts=""

View File

@ -12,11 +12,11 @@ depend()
start()
{
ebegin "Terminating remaining processes"
killall5 -15
killall5 -15 ${killall5_opts}
sleep 1
eend 0
ebegin "Killing remaining processes"
killall5 -9
killall5 -9 ${killall5_opts}
sleep 1
eend 0
}