ready for tagging
[util-vserver.git] / sysv / vservers-default
1 #!/bin/sh
2 # chkconfig: - 98 02
3 # description: Wrapper to start the default vservers
4
5 ## The *basename* of the lockfile; this must be the same name like
6 ## this if the initscript. Else, the vservers will not be stopped at
7 ## shutdown
8 #LOCKFILE=vserver-default
9
10 ## Number of vservers which shall be started in parallel; since most
11 ## initmethods are spending much time time in sleeps, it is safe to
12 ## use a high number here
13 #NUMPARALLEL=99
14
15 ## The vserver-flavor; the 'default' vservers will be started very late
16 ## which may be inappropriately for early services like nameservers or
17 ## VPN tunnels. By copying this initscript to a new name and adapting
18 ## the startup-position (for RH/Fedora the numbers in line 2), other
19 ## vservers can be selected. Identification of vservers happens by
20 ## putting the flavor into /etc/vservers/<vserver-id>/apps/init/mark.
21 #MARK=default
22
23 export MARK NUMPARALLEL LOCKFILE
24 exec /usr/lib/util-vserver/vserver-wrapper "$@"
25