vshost-util-vserver

Build script and sources for util-vserver.
git clone https://ccx.te2000.cz/git/vshost-util-vserver
Log | Files | Refs

vservers-default (1781B)


      1 #!/bin/sh
      2 # chkconfig: - 98 02
      3 # description: Wrapper to start the default vservers
      4 #
      5 ### BEGIN INIT INFO
      6 # Provides:          vservers-default
      7 # Required-Start:    $remote_fs $syslog $time $network vprocunhide util-vserver 
      8 # Required-Stop:     $remote_fs $syslog $time $network vprocunhide util-vserver
      9 # Default-Start:     2 3 4 5
     10 # Default-Stop:      0 1 6
     11 # Short-Description: Wrapper to start the default vservers
     12 # Description:       Wrapper to start the default vservers
     13 ### END INIT INFO
     14 
     15 ## The *basename* of the lockfile; this must be the same name like
     16 ## this if the initscript. Else, the vservers will not be stopped at
     17 ## shutdown
     18 #LOCKFILE=vserver-default
     19 
     20 ## Number of vservers which shall be started in parallel; since most
     21 ## initmethods are spending much time time in sleeps, it is safe to
     22 ## use a high number here
     23 #NUMPARALLEL=99
     24 
     25 ## The vserver-flavor; the 'default' vservers will be started very late
     26 ## which may be inappropriately for early services like nameservers or
     27 ## VPN tunnels. By copying this initscript to a new name and adapting
     28 ## the startup-position (for RH/Fedora the numbers in line 2), other
     29 ## vservers can be selected. Identification of vservers happens by
     30 ## putting the flavor into /etc/vservers/<vserver-id>/apps/init/mark.
     31 #MARK=default
     32 
     33 if test -r /etc/sysconfig/vservers-default; then
     34     . /etc/sysconfig/vservers-default
     35 fi
     36 if test -r /etc/default/vservers-default; then
     37     . /etc/default/vservers-default
     38 fi
     39 
     40 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
     41 test -e "$UTIL_VSERVER_VARS" || {
     42     echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
     43     exit 1
     44 }
     45 . "$UTIL_VSERVER_VARS"
     46 
     47 export MARK NUMPARALLEL LOCKFILE
     48 exec "$_VSERVER_WRAPPER" "$@"
     49