#!/bin/bash # $Id$ #%rlevels: 0:k 6:k #%start: #%stop: 50 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source ${rc_functions} rc_print "Sending all processes the TERM signal ..." killall5 -15 error_value=$? # # Sleep for a while to allow processes to receive and process the TERM # signal. The heavier your system is loaded, the higher it should sleep # here. # sleep 3 if [ "$error_value" = 0 ] then print_status success else print_status failure fi rc_print "Sending all processes the KILL signal ..." killall5 -9 error_value=$? # # Increase sleep amount on heavier loaded systems. # sleep 3 if [ "$error_value" = 0 ] then print_status success else print_status failure fi update_svcstatus $1 splash svc_stopped "$(basename $0)" 0