#!/sbin/sh
#
# @(#) $Revision: 72.4 $
#
# NOTE:    This script is not configurable!  Any changes made to this
#          script will be overwritten when you upgrade to the next
#          release of HP-UX.
#
# WARNING: Changing this script in any way may lead to a system that
#          is unbootable.  Do not modify this script.

# Execute /usr/sbin/killall to kill all user processes.

PATH=/usr/sbin:/usr/bin:/sbin
export PATH

rval=0
set_return() {
	x=$?
	if [ $x -ne 0 ]; then
		echo "EXIT CODE: $x"
		rval=1
	fi
}

case $1 in

'stop_msg')
	echo "Killing user processes"
	;;

'stop')
	/usr/sbin/killall
	set_return
	;;

*)
	echo "usage: $0 {stop|stop_msg}"
	rval=1
	;;
esac

exit $rval
