aboutsummaryrefslogtreecommitdiff
path: root/templates/vserver/vserver.d/etc/rc.d/rc.K
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 14:29:54 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-11 14:29:54 +0000
commitf9a8dfcd51e481a49355d94a3e74f2762519378f (patch)
tree948f0382081bd2eb8b1b5458a9661b67a090e795 /templates/vserver/vserver.d/etc/rc.d/rc.K
parentfef31cbc9988ead081aaec587222b44ed524b6fd (diff)
downloadsimplepkg-f9a8dfcd51e481a49355d94a3e74f2762519378f.tar.gz
simplepkg-f9a8dfcd51e481a49355d94a3e74f2762519378f.tar.bz2
changed repository layout to trunk/, tags/ and branches/ scheme
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@181 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'templates/vserver/vserver.d/etc/rc.d/rc.K')
-rwxr-xr-xtemplates/vserver/vserver.d/etc/rc.d/rc.K88
1 files changed, 0 insertions, 88 deletions
diff --git a/templates/vserver/vserver.d/etc/rc.d/rc.K b/templates/vserver/vserver.d/etc/rc.d/rc.K
deleted file mode 100755
index 00a1501..0000000
--- a/templates/vserver/vserver.d/etc/rc.d/rc.K
+++ /dev/null
@@ -1,88 +0,0 @@
-#! /bin/sh
-#
-# rc.K This file is executed by init when it goes into runlevel
-# 1, which is the administrative state. It kills all
-# daemons and then puts the system into single user mode.
-# Note that the file systems are kept mounted.
-#
-# Version: @(#)/etc/rc.d/rc.K 3.1415 Sat Jan 13 13:37:26 PST 2001
-#
-# Author: Miquel van Smoorenburg <miquels@drinkel.nl.mugnet.org>
-# Modified by: Patrick J. Volkerding <volkerdi@slackware.com>
-#
-
-# Set the path.
-PATH=/sbin:/bin:/usr/bin:/usr/sbin
-
-# If there are SystemV init scripts for this runlevel, run them.
-if [ -x /etc/rc.d/rc.sysvinit ]; then
- . /etc/rc.d/rc.sysvinit
-fi
-
-# Try to turn off quota:
-if grep -q quota /etc/fstab ; then
- if [ -x /sbin/quotaoff ]; then
- echo "Turning off filesystem quotas."
- /sbin/quotaoff -a
- fi
-fi
-
-# Try to turn off accounting:
-if [ -x /sbin/accton -a -r /var/log/pacct ]; then
- echo "Turning off accounting."
- /sbin/accton
-fi
-
-# Stop the Apache web server:
-if [ -x /etc/rc.d/rc.httpd ]; then
- /etc/rc.d/rc.httpd stop
-fi
-
-# Stop the Samba server:
-if [ -x /etc/rc.d/rc.samba ]; then
- . /etc/rc.d/rc.samba stop
-fi
-
-# Shut down the NFS server:
-if [ -x /etc/rc.d/rc.nfsd ]; then
- /etc/rc.d/rc.nfsd stop
-fi
-
-# Shut down PCMCIA devices:
-if [ -x /etc/rc.d/rc.pcmcia ] ; then
- . /etc/rc.d/rc.pcmcia stop
- # The cards might need a little extra time here to initialize.
- sleep 5
-fi
-
-# Kill all processes.
-echo
-echo "Sending all processes the SIGHUP signal."
-killall5 -1
-echo -n "Waiting for processes to hang up"
-for loop in 0 1 2 3 4 5 ; do
- sleep 1
- echo -n "."
-done
-echo
-echo "Sending all processes the SIGTERM signal."
-killall5 -15
-echo -n "Waiting for processes to terminate"
-for loop in 0 1 2 3 4 5 ; do
- sleep 1
- echo -n "."
-done
-echo
-echo "Sending all processes the SIGKILL signal."
-killall5 -9
-echo -n "Waiting for processes to exit"
-for loop in 0 1 2 3 4 5 ; do
- sleep 1
- echo -n "."
-done
-echo
-
-# Now go to the single user level
-echo "Going to single user mode..."
-telinit -t 1 1
-