From: Alex Lyashkov (shadow_at_psoft.net)
Date: Mon 22 Sep 2003 - 08:28:14 BST
Hello All
vserver script have bug in chkconfig section.
it`s bug not allow to use "--level" option.
for fix you need change
===========
if [ "$1" = "--level" ] ; then
shift
LEVELS=$1
shift
fi
if [ $# != 2 ] ; then
echo Invalid argument, expected vserver name chkconfig [
--level nnn ] service on\|off
elif [ -x /vservers/$VSERVER/sbin/chkconfig ] ; then
exec $0 --silent $VSERVER exec /sbin/chkconfig "$@"
===========
to
===========
if [ "$1" = "--level" ] ; then
shift
LEVELS="--level $1"
shift
fi
if [ $# != 2 ] ; then
echo Invalid argument, expected vserver name chkconfig [
--level nnn ] service on\|off
elif [ -x $VPSHOME/$VSERVER/sbin/chkconfig ] ; then
exec $0 --silent $VSERVER exec /sbin/chkconfig $LEVELS $@
============
-- With best regards, Alex