aboutsummaryrefslogtreecommitdiff
path: root/trunk/templates/vserver/files/etc/rc.d/rc.sysvinit
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-07 19:32:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-07 19:32:06 -0300
commit0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b (patch)
treed4429ce3a62e9cb5d095ad567b5f821d99a7b9f5 /trunk/templates/vserver/files/etc/rc.d/rc.sysvinit
parent5bfb15bdbedbc7273a283d611c84ed1cf401011b (diff)
downloadsimplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.gz
simplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.bz2
New repo layout with git migration
Diffstat (limited to 'trunk/templates/vserver/files/etc/rc.d/rc.sysvinit')
-rwxr-xr-xtrunk/templates/vserver/files/etc/rc.d/rc.sysvinit58
1 files changed, 0 insertions, 58 deletions
diff --git a/trunk/templates/vserver/files/etc/rc.d/rc.sysvinit b/trunk/templates/vserver/files/etc/rc.d/rc.sysvinit
deleted file mode 100755
index 916e59e..0000000
--- a/trunk/templates/vserver/files/etc/rc.d/rc.sysvinit
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-#
-# rc.sysvinit This file provides basic compatibility with SystemV style
-# startup scripts. The SystemV style init system places
-# start/stop scripts for each runlevel into directories such as
-# /etc/rc.d/rc3.d/ (for runlevel 3) instead of starting them
-# from /etc/rc.d/rc.M. This makes for a lot more init scripts,
-# and a more complicated execution path to follow through if
-# something goes wrong. For this reason, Slackware has always
-# used the traditional BSD style init script layout.
-#
-# However, many binary packages exist that install SystemV
-# init scripts. With rc.sysvinit in place, most well-written
-# startup scripts will work. This is primarily intended to
-# support commercial software, though, and probably shouldn't
-# be considered bug free.
-#
-# Written by Patrick Volkerding <volkerdi@slackware.com>, 1999
-# from an example by Miquel van Smoorenburg <miquels@cistron.nl>.
-
-# Run an init script:
-startup() {
- case "$1" in
- *.sh)
- sh "$@"
- ;;
- *)
- "$@"
- ;;
- esac
-}
-
-# Set onlcr to avoid staircase effect.
-stty onlcr 0>&1
-
-if [ "$runlevel" = "" ]; then
- runlevel=$RUNLEVEL
- export runlevel
- prevlevel=$PREVLEVEL
- export prevlevel
-fi
-
-# Run kill scripts in the previous runlevel if not "none"
-if [ ! "$prevlevel" = "N" ]; then
- for script in /etc/rc.d/rc$prevlevel.d/K* ; do
- if [ -x $script ]; then
- startup $script stop
- fi
- done
-fi
-
-# Now do the startup scripts:
-for script in /etc/rc.d/rc$runlevel.d/S* ; do
- if [ -x $script ]; then
- startup $script start
- fi
-done
-