Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/sendsignals

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/magellan-initscripts/etc/rc.d/init.d/sendsignals revision 71 by niro, Tue Mar 15 19:07:56 2005 UTC trunk/initscripts/sysvinit/rc/sendsignals revision 1889 by niro, Wed Aug 22 17:53:50 2012 UTC
# Line 1  Line 1 
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:
# Line 10  Line 10 
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 ..."  [[ -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  #  #
# Line 32  else Line 50  else
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  #  #

Legend:
Removed from v.71  
changed lines
  Added in v.1889