Magellan Linux

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

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

revision 1888 by niro, Sat Jun 4 21:05:01 2011 UTC revision 1889 by niro, Wed Aug 22 17:53:50 2012 UTC
# Line 13  Line 13 
13  source /etc/conf.d/rc  source /etc/conf.d/rc
14  source ${rc_functions}  source ${rc_functions}
15    
16    [[ -e /etc/conf.d/sendsignals ]] && source /etc/conf.d/sendsignals
17    
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 ..."  rc_print "Sending all processes the TERM signal ..."
35  killall5 -15  killall5 -15 ${opts}
36  error_value=$?  error_value=$?
37    
38  #  #
# Line 33  else Line 51  else
51  fi  fi
52    
53  rc_print "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.1888  
changed lines
  Added in v.1889