X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sysv%2Fvservers-default;fp=sysv%2Fvservers-default;h=3d9b5768476e00f5ea5cd1e88a1247eb71bb2b59;hb=8cf13bb177d92c93eb73dc8939777150536c2d00;hp=0000000000000000000000000000000000000000;hpb=6bf3f95de36c804c97716b2d0bdf10680c559044;p=util-vserver.git diff --git a/sysv/vservers-default b/sysv/vservers-default new file mode 100755 index 0000000..3d9b576 --- /dev/null +++ b/sysv/vservers-default @@ -0,0 +1,25 @@ +#!/bin/sh +# chkconfig: - 98 02 +# description: Wrapper to start the default vservers + +## The *basename* of the lockfile; this must be the same name like +## this if the initscript. Else, the vservers will not be stopped at +## shutdown +#LOCKFILE=vserver-default + +## Number of vservers which shall be started in parallel; since most +## initmethods are spending much time time in sleeps, it is safe to +## use a high number here +#NUMPARALLEL=99 + +## The vserver-flavor; the 'default' vservers will be started very late +## which may be inappropriately for early services like nameservers or +## VPN tunnels. By copying this initscript to a new name and adapting +## the startup-position (for RH/Fedora the numbers in line 2), other +## vservers can be selected. Identification of vservers happens by +## putting the flavor into /etc/vservers//apps/init/mark. +#MARK=default + +export MARK NUMPARALLEL LOCKFILE +exec /usr/lib/util-vserver/vserver-wrapper "$@" +