Annotation of /trunk/magellan-initscripts/rc/sendsignals
Parent Directory | Revision Log
Revision 71 -
(hide annotations)
(download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 6 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sendsignals
File size: 915 byte(s)
Tue Mar 15 19:07:56 2005 UTC (19 years, 6 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sendsignals
File size: 915 byte(s)
updated header and fixed whitespaces
1 | niro | 2 | #!/bin/bash |
2 | niro | 71 | # $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 $ |
3 | niro | 2 | |
4 | #%rlevels: 0:k 6:k | ||
5 | #%start: | ||
6 | #%stop: 50 | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | source /etc/sysconfig/rc | ||
14 | source $rc_functions | ||
15 | |||
16 | echo -e ${COLOREDSTAR}"Sending all processes the TERM signal ..." | ||
17 | killall5 -15 | ||
18 | error_value=$? | ||
19 | |||
20 | # | ||
21 | # Sleep for a while to allow processes to receive and process the TERM | ||
22 | # signal. The heavier your system is loaded, the higher it should sleep | ||
23 | # here. | ||
24 | # | ||
25 | |||
26 | sleep 3 | ||
27 | |||
28 | if [ "$error_value" = 0 ] | ||
29 | then | ||
30 | print_status success | ||
31 | else | ||
32 | print_status failure | ||
33 | fi | ||
34 | |||
35 | echo -e ${COLOREDSTAR}"Sending all processes the KILL signal ..." | ||
36 | killall5 -9 | ||
37 | error_value=$? | ||
38 | |||
39 | # | ||
40 | # Increase sleep amount on heavier loaded systems. | ||
41 | # | ||
42 | |||
43 | sleep 3 | ||
44 | |||
45 | if [ "$error_value" = 0 ] | ||
46 | then | ||
47 | print_status success | ||
48 | else | ||
49 | print_status failure | ||
50 | fi | ||
51 | |||
52 | update_svcstatus $1 | ||
53 | splash svc_stopped "$(basename $0)" 0 |
Properties
Name | Value |
---|---|
svn:executable | * |