13 |
source /etc/conf.d/rc |
source /etc/conf.d/rc |
14 |
source ${rc_functions} |
source ${rc_functions} |
15 |
|
|
16 |
echo -e ${COLOREDSTAR}"Sending all processes the TERM signal ..." |
[[ -e /etc/conf.d/sendsignals ]] && source /etc/conf.d/sendsignals |
17 |
killall5 -15 |
|
18 |
|
opts="" |
19 |
|
if [[ -n ${IGNORED_PROCS} ]] |
20 |
|
then |
21 |
|
for proc in ${IGNORED_PROCS} |
22 |
|
do |
23 |
|
pids=$(pidof ${proc}) |
24 |
|
if [[ -n ${pids} ]] |
25 |
|
then |
26 |
|
for id in ${pids} |
27 |
|
do |
28 |
|
opts="${opts} -o ${id}" |
29 |
|
done |
30 |
|
fi |
31 |
|
done |
32 |
|
fi |
33 |
|
|
34 |
|
rc_print "Sending all processes the TERM signal ..." |
35 |
|
killall5 -15 ${opts} |
36 |
error_value=$? |
error_value=$? |
37 |
|
|
38 |
# |
# |
50 |
print_status failure |
print_status failure |
51 |
fi |
fi |
52 |
|
|
53 |
echo -e ${COLOREDSTAR}"Sending all processes the KILL signal ..." |
rc_print "Sending all processes the KILL signal ..." |
54 |
killall5 -9 |
killall5 -9 ${opts} |
55 |
error_value=$? |
error_value=$? |
56 |
|
|
57 |
# |
# |