X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fsendsignals;fp=stage1%2Fbootscripts%2Fsendsignals;h=6bde3e31dea4ee50d8e8298efd1e12db230377c5;hb=6d3d50c17b24ef41f917f5776696eca810198092;hp=0000000000000000000000000000000000000000;hpb=6bd766eee64094f4a893c5c168a9dea089888a8d;p=hvlinux.git diff --git a/stage1/bootscripts/sendsignals b/stage1/bootscripts/sendsignals new file mode 100755 index 0000000..6bde3e3 --- /dev/null +++ b/stage1/bootscripts/sendsignals @@ -0,0 +1,17 @@ +#!/bin/sh + +# 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 "Sending all processes the TERM signal" /sbin/killall5 -15 + +# Send all the remaining process (after sending them the TERM signal before) +# the KILL signal. +cmd_run_log_box "Sending all processes the KILL signal" /sbin/killall5 -9 + +exit $?