#! /bin/sh
# /etc/init.d/single: executed by init(8) upon entering runlevel 1 (single).
# $Id: single,v 1.1 1995/02/19 20:29:29 imurdock Exp $
#
# Adapted from a script by Miquel van Smoorenburg.

PATH="/sbin:/bin:/usr/sbin:/usr/bin"

# Kill all processes.
echo -n "Sending all processes the TERM signal... "
killall5 -15
echo "done."
sleep 5
echo -n "Sending all processes the KILL signal... "
killall5 -9
echo "done."

echo "Entering single-user mode..."
exec init -t1 S
