X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvserver.functions;h=6570993263575bc8c388c755e06fe561ef94778b;hb=bd41fcf11dc8849d4b7ba2af39f808a4a6c0a62e;hp=be6e8138a76fd98589f743621924e3df151a0233;hpb=4111ebf86b56722baa166a59394334732ae111a7;p=util-vserver.git diff --git a/scripts/vserver.functions b/scripts/vserver.functions index be6e813..6570993 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -299,8 +299,11 @@ function _generateInitOptions ;; (xgentoo) - INITCMD_START=( /lib/rcscripts/sh/init-vserver.sh ) + test -n "$RUNLEVEL_START" || RUNLEVEL_START="default" + + INITCMD_START=( /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" ) INITCMD_STOP=( /sbin/rc shutdown ) + INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp ) pushd "$vdir"/vdir &>/dev/null basever=$($_CHROOT_SH cat /etc/gentoo-release | $_AWK '{print $5}') @@ -407,6 +410,11 @@ function _generateChcontextOptions function _generateScheduleOptions { local vdir=$1 + if test -d "$vdir"/sched; then + OPTS_VSCHED=( --dir "$vdir"/sched --missingok ) + return 0 + fi + local f="$vdir"/schedule test -e "$f" || return 0