#!/bin/bash # sendsignals # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" # Send all the remaining processes the TERM signal cmd_run_log_box_warn "Sending all processes the TERM signal" /sbin/killall5 -15 sleep 2 # Send all the remaining processes (after sending them the TERM signal before) # the KILL signal. cmd_run_log_box_warn "Sending all processes the KILL signal" /sbin/killall5 -9 sleep 2 exit $?