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 931 by niro, Thu Nov 5 12:57:14 2009 UTC trunk/initscripts/sysvinit/rc/sendsignals 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  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.931  
changed lines
  Added in v.1889