1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/sendsignals,v 1.2 2005-03-15 19:07:56 niro Exp $ |
# $Id$ |
3 |
|
|
4 |
#%rlevels: 0:k 6:k |
#%rlevels: 0:k 6:k |
5 |
#%start: |
#%start: |
10 |
#%before: |
#%before: |
11 |
#%after: |
#%after: |
12 |
|
|
13 |
source /etc/sysconfig/rc |
source /etc/conf.d/rc |
14 |
source $rc_functions |
source ${rc_functions} |
15 |
|
|
16 |
echo -e ${COLOREDSTAR}"Sending all processes the TERM signal ..." |
rc_print "Sending all processes the TERM signal ..." |
17 |
killall5 -15 |
killall5 -15 |
18 |
error_value=$? |
error_value=$? |
19 |
|
|
32 |
print_status failure |
print_status failure |
33 |
fi |
fi |
34 |
|
|
35 |
echo -e ${COLOREDSTAR}"Sending all processes the KILL signal ..." |
rc_print "Sending all processes the KILL signal ..." |
36 |
killall5 -9 |
killall5 -9 |
37 |
error_value=$? |
error_value=$? |
38 |
|
|