aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/single
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/single')
-rwxr-xr-xrc.d/init.d/single11
1 files changed, 6 insertions, 5 deletions
diff --git a/rc.d/init.d/single b/rc.d/init.d/single
index 6806d0c3..92de156e 100755
--- a/rc.d/init.d/single
+++ b/rc.d/init.d/single
@@ -10,10 +10,11 @@
# Modified for RHS Linux by Damien Neil
#
-. /etc/init.d/functions
-
# Set the path.
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+TEXTDOMAIN=initscripts
+
+. /etc/rc.d/init.d/functions
if [ "$1" != "start" ] ; then
exit 0
@@ -22,10 +23,10 @@ fi
# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill
-echo "Sending all processes the TERM signal..."
+gprintf "Sending all processes the %s signal...\n" "TERM"
kill -15 -1
sleep 5
-echo "Sending all processes the KILL signal.."
+gprintf "Sending all processes the %s signal..\n" "KILL"
kill -9 -1
rm -f /var/lock/subsys/*
@@ -52,5 +53,5 @@ for i in /etc/rc1.d/S[0-9][0-9]*; do
done
# Now go to the single user level.
-echo "Telling INIT to go to single user mode."
+gprintf "Telling INIT to go to single user mode.\n"
exec init -t1 S