Older Newer
Sun, 05 Feb 2006 08:34:46 . . . . derjohn [put my diff to the debain / util-vserver init script in here]


Changes by last author:

Added:
dummy line

<code>

# cat /usr/src/vservers-default-debianiazed.patch

--- /usr/src/vservers-default.orig 2006-02-05 14:37:38.000000000 +0100

+++ /usr/src/vservers-default.debianized 2006-02-05 14:38:14.000000000 +0100

@@ -2,10 +2,14 @@

# chkconfig: - 98 02

# description: Wrapper to start the default vservers

+AUTOSTART=true

+DEBIANCONFIG=/etc/default/$(basename $0)

+test -f $DEBIANCONFIG && . $DEBIANCONFIG

+

## 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

+LOCKFILE=$(basename $0)

## Number of vservers which shall be started in parallel; since most

## initmethods are spending much time time in sleeps, it is safe to

@@ -21,5 +25,10 @@

#MARK=default

export MARK NUMPARALLEL LOCKFILE

-exec /usr/lib/util-vserver/vserver-wrapper "$@"

+if [ "$AUTOSTART" = "true" ]; then

+ exec /usr/local//lib/util-vserver/vserver-wrapper "$@";

+else

+ echo "AUTOSTART not enabled in $DEBIANCONFIG";

+fi

+

</code>