Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 371625
Collapse All | Expand All

(-)a/conf.d/Makefile (-1 / +1 lines)
Lines 1-5 Link Here
1
DIR=	${CONFDIR}
1
DIR=	${CONFDIR}
2
CONF=	bootmisc fsck hostname localmount network staticroute urandom
2
CONF=	bootmisc fsck hostname killprocs localmount network staticroute urandom
3
3
4
TARGETS+=	network staticroute
4
TARGETS+=	network staticroute
5
CLEANFILES+=	network staticroute
5
CLEANFILES+=	network staticroute
(-)a/conf.d/killprocs (+4 lines)
Line 0 Link Here
1
# This variable contains a space-delimited list of PIDs which will
2
# not be killed by the killprocs initscript
3
4
# DONTKILL_PIDS="42 566"
(-)a/init.d/killprocs.in (-3 / +10 lines)
Lines 12-22 depend() Link Here
12
start()
12
start()
13
{
13
{
14
	ebegin "Terminating remaining processes"
14
	ebegin "Terminating remaining processes"
15
	killall5 -15
15
	local dontkill
16
	if [ -n "${DONTKILL_PIDS}" ]; then
17
		for pid in ${DONTKILL_PIDS}; do
18
			dontkill=${dontkill},$pid
19
		done
20
		dontkill=${dontkill#,}
21
		[ -n "${dontkill}" ] && dontkill="-o ${dontkill}"
22
	fi
23
	killall5 -15 ${dontkill}
16
	sleep 1
24
	sleep 1
17
	eend 0
25
	eend 0
18
	ebegin "Killing remaining processes"
26
	ebegin "Killing remaining processes"
19
	killall5 -9
27
	killall5 -9 ${dontkill}
20
	sleep 1
28
	sleep 1
21
	eend 0
29
	eend 0
22
}
30
}
23
- 

Return to bug 371625