Contents of /trunk/magellan-initscripts/rc/sendsignals
Parent Directory | Revision Log
Revision 3 -
(show annotations)
(download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sendsignals
File size: 781 byte(s)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sendsignals
File size: 781 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches.
1 | #!/bin/bash |
2 | |
3 | #%rlevels: 0:k 6:k |
4 | #%start: |
5 | #%stop: 50 |
6 | |
7 | #deps |
8 | #%needs: |
9 | #%before: |
10 | #%after: |
11 | |
12 | source /etc/sysconfig/rc |
13 | source $rc_functions |
14 | |
15 | echo -e ${COLOREDSTAR}"Sending all processes the TERM signal ..." |
16 | killall5 -15 |
17 | error_value=$? |
18 | |
19 | # |
20 | # Sleep for a while to allow processes to receive and process the TERM |
21 | # signal. The heavier your system is loaded, the higher it should sleep |
22 | # here. |
23 | # |
24 | |
25 | sleep 3 |
26 | |
27 | if [ "$error_value" = 0 ] |
28 | then |
29 | print_status success |
30 | else |
31 | print_status failure |
32 | fi |
33 | |
34 | echo -e ${COLOREDSTAR}"Sending all processes the KILL signal ..." |
35 | killall5 -9 |
36 | error_value=$? |
37 | |
38 | # |
39 | # Increase sleep amount on heavier loaded systems. |
40 | # |
41 | |
42 | sleep 3 |
43 | |
44 | if [ "$error_value" = 0 ] |
45 | then |
46 | print_status success |
47 | else |
48 | print_status failure |
49 | fi |
50 | |
51 | update_svcstatus $1 |
52 | splash svc_stopped "$(basename $0)" 0 |
Properties
Name | Value |
---|---|
svn:executable | * |