Creating the sendsignals script

Create a new file /etc/init.d/sendsignals containing the following:



#!/bin/sh
# Begin /etc/init.d/sendsignals

source /etc/init.d/functions

echo -n "Sending all processes the TERM signal..."
/sbin/killall5 -15
evaluate_retval

echo -n "Sending all processes the KILL signal..."
/sbin/killall5 -9
evaluate_retval

# End /etc/init.d/sendsignals