diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-03-06 02:03:53 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-03-06 02:03:53 +0000 |
commit | 52a3537b8ebca3a5146cf363ffa6d716f2b00da0 (patch) | |
tree | ba684cac72fd8e2147f13d7c27d5a61d6133a444 /branches/0.6/templates/vserver/vserver.d/etc/rc.d/rc.sysvinit | |
parent | f93c3531707ac292b2d43f00c9a600d1ecdbb76d (diff) | |
download | simplepkg-52a3537b8ebca3a5146cf363ffa6d716f2b00da0.tar.gz simplepkg-52a3537b8ebca3a5146cf363ffa6d716f2b00da0.tar.bz2 |
removing old 0.6 branch
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@798 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'branches/0.6/templates/vserver/vserver.d/etc/rc.d/rc.sysvinit')
-rwxr-xr-x | branches/0.6/templates/vserver/vserver.d/etc/rc.d/rc.sysvinit | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/branches/0.6/templates/vserver/vserver.d/etc/rc.d/rc.sysvinit b/branches/0.6/templates/vserver/vserver.d/etc/rc.d/rc.sysvinit deleted file mode 100755 index 916e59e..0000000 --- a/branches/0.6/templates/vserver/vserver.d/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 - |