All pastes #66684 Raw Edit

Someone

public text v1 · immutable
#66684 ·published 2006-06-17 23:48 UTC
rendered paste body
+ shift
+ true
+ case "$1" in
+ shift
+ break
+ OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY)
+ SELF=("$0" "${OPTION_ALL[@]}")
+ vserver=hosting
+ cmd=start
+ test start '!=' build
+ allow_legacy=
+ case "$vserver" in
+ VSERVER_DIR=/etc/vservers/hosting
+ allow_legacy=1
+ test -n 1
+ do_legacy=
+ test '!' -e /etc/vservers/hosting/legacy
+ test -d /etc/vservers/hosting -o '!' -e /etc/vservers/hosting.conf
+ test -z ''
+ test -d /etc/vservers/hosting
+ test -e /etc/vservers/hosting/name
+ read VSERVER_NAME
+ test start '!=' start -o -n ''
+ isAvoidNamespace /etc/vservers/hosting
+ local cfgdir
+ /sbin/vserver-info - FEATURE namespace
++ /sbin/vserver-info /etc/vservers/hosting CFGDIR
+ cfgdir=/etc/vservers/hosting
+ test '!' -e /etc/vservers/hosting/namespace
+ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/hosting/nonamespace
+ exec /sbin/vnamespace --new -- /sbin/vserver ----nonamespace --debug hosting start
+ shift
+ true
+ case "$1" in
+ shift
+ break
+ OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY)
+ SELF=("$0" "${OPTION_ALL[@]}")
+ vserver=hosting
+ cmd=start
+ test start '!=' build
+ allow_legacy=
+ case "$vserver" in
+ VSERVER_DIR=/etc/vservers/hosting
+ allow_legacy=1
+ test -n 1
+ do_legacy=
+ test '!' -e /etc/vservers/hosting/legacy
+ test -d /etc/vservers/hosting -o '!' -e /etc/vservers/hosting.conf
+ test -z ''
+ test -d /etc/vservers/hosting
+ test -e /etc/vservers/hosting/name
+ read VSERVER_NAME
+ test start '!=' start -o -n ----nonamespace
+ . /lib/util-vserver/vserver.functions
++ NICE_CMD=()
++ declare -a NICE_CMD
++ CHBIND_OPTS=()
++ declare -a CHBIND_OPTS
++ CAP_OPTS=()
++ declare -a CAP_OPTS
++ CHCONTEXT_INIT_OPTS=()
++ declare -a CHCONTEXT_INIT_OPTS
++ CHCONTEXT_FLAG_OPTS=()
++ declare -a CHCONTEXT_FLAG_OPTS
++ CHCONTEXT_OPTS=()
++ declare -a CHCONTEXT_OPTS
++ CAPCHROOT_OPTS=()
++ declare -a CAPCHROOT_OPTS
++ INTERFACES=()
++ declare -a INTERFACES
++ INITCMD_RESCUE=(/bin/sleep 900)
++ declare -a INITCMD_RESCUE
++ INITCMD_START=()
++ declare -a INITCMD_START
++ INITCMD_START_SYNC=()
++ declare -a INITCMD_START_SYNC
++ INITCMD_STOP=()
++ declare -a INITCMD_STOP
++ INITCMD_STOP_SYNC=()
++ declare -a INITCMD_STOP_SYNC
++ INITCMD_PREPARE=()
++ declare -a INITCMD_PREPARE
++ INITKILL_SEQ=()
++ declare -a INITKILL_SEQ
++ ENTER_SHELL=()
++ declare -a ENTER_SHELL
++ OPTS_VCONTEXT_CREATE=()
++ declare -a OPTS_VCONTEXT_CREATE
++ OPTS_VCONTEXT_MIGRATE=()
++ declare -a OPTS_VCONTEXT_MIGRATE
++ OPTS_VCONTEXT_ENTER=()
++ declare -a OPTS_VCONTEXT_ENTER
++ OPTS_VATTRIBUTE=(--flag fakeinit)
++ declare -a OPTS_VATTRIBUTE
++ OPTS_VSCHED=()
++ declare -a OPTS_VSCHED
++ STOPCMD_PREPARE=()
++ declare -a STOPCMD_PREPARE
++ VSERVER_EXTRA_CMDS=()
++ declare -a VSERVER_EXTRA_CMDS
++ INIT_RESCUE=
++ VSHELPER_SYNC_TIMEOUT=30
++ USE_VNAMESPACE=
++ INTERFACE_CMDS_IDX=0
++ RUNLEVEL_START=
++ RUNLEVEL_STOP=
++ _HAVE_INTERFACE_OPTIONS=
++ _HAVE_CHBIND_OPTIONS=
++ _NEED_VSHELPER_SYNC=
++ _IS_FAKEINIT=
++ INITSTYLE=sysv
++ S_CONTEXT=
++ SILENT_OPT=
++ : hosting
++ test -e /etc/vservers/hosting/noisy -o -n ''
++ SILENT_OPT=--silent
+ case "$2" in
+ shift 2
+ . /lib/util-vserver/vserver.start
+++ /sbin/vserver-info /etc/vservers/hosting CANONIFY
++ lock /var/lock/vserver.etcvservershosting.startup
+++ /usr/bin/mktemp -t vserver-lock.XXXXXX
++ local tmp=/tmp/vserver-lock.LmKfjb
++ /usr/bin/rm -f /tmp/vserver-lock.LmKfjb
++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.LmKfjb
++ /lib/util-vserver/lockfile /var/lock/vserver.etcvservershosting.startup /tmp/vserver-lock.LmKfjb
++ /usr/bin/grep -q true /tmp/vserver-lock.LmKfjb
++ _VS_LOCKS='8677 '
++ isVserverRunning /etc/vservers/hosting
++ local _ivr_ctx _ivr_procnum
++ getVserverStatus /etc/vservers/hosting _ivr_ctx _ivr_procnum 1
++ test -r /etc/vservers/hosting/run
++ local _gvs_ctx
++ read _gvs_ctx
++ eval '_ivr_ctx=$_gvs_ctx'
+++ _ivr_ctx=2
++ test -n _ivr_procnum
++ local _gvs_tmp
++ _getProcNumberCount 2 _gvs_tmp
++ local _gp_var=_gvs_tmp
++ local _gp_procnr_cnt=0
++ test -d /proc/virtual
+++ /usr/bin/grep '^PROC:' /proc/virtual/2/limit
++ set --
++ _gp_procnr_cnt=
++ let _gp_procnr_cnt=_gp_procnr_cnt+0
++ eval '_gvs_tmp=$_gp_procnr_cnt'
+++ _gvs_tmp=0
++ eval '_ivr_procnum=$_gvs_tmp'
+++ _ivr_procnum=0
++ test 0 = 0
+++ /lib/util-vserver/readlink /etc/vservers/hosting/run
++ local runfile=/var/run/vservers/hosting
++ test -z 1
++ /usr/bin/rm -f /var/run/vservers/hosting
++ return 1
++ return 1
++ is_configured=
++ is_executed=
++ is_started=
++ is_mounted=
++ is_vshelper_init=
++ have_interfaces=
++ startsync_pipe=
++ have_initcmd=
++ test 0 -gt 0
++ test xsysv = xrescue -a -z '' -a 0 -gt 0
++ set -e
++ trap cleanup EXIT
++ sanityCheck /etc/vservers/hosting
++ declare -r cfgdir=/etc/vservers/hosting
++ test -e /etc/vservers/hosting/fstab.local
++ test -e /etc/vservers/hosting/hostname -a '!' -L /etc/vservers/hosting/hostname
++ test -e /etc/vservers/hosting/domainname -a '!' -L /etc/vservers/hosting/domainname
++ local i
++ for i in '"$cfgdir"/interfaces/*/only_ip'
++ test -e '/etc/vservers/hosting/interfaces/*/only_ip'
++ test '!' -d /etc/vservers/hosting/dlimits -o -L /etc/vservers/hosting/cache
++ find /etc/vservers/hosting -type f -exec /lib/util-vserver/check-unixfile '{}' ';'
++ vshelper.doSanityCheck
++ local vshelper this_xid i
++ warnings=()
++ declare -a warnings
++ local solution_disable=
++ local solution_sysctl=
++ vshelper.isEnabled
++ local f=disabled
++ test '!' -e /etc/vservers/.defaults/apps/vshelper/disabled
++ /sbin/vserver-info - FEATURE vshelper
++ test -n ''
++ return 0
++ vshelper.isEnabled warning
++ local f=warning-disabled
++ test '!' -e /etc/vservers/.defaults/apps/vshelper/warning-disabled
++ /sbin/vserver-info - FEATURE vshelper
++ test -n ''
++ return 0
+++ /sbin/vserver-info - XID
++ this_xid=0
++ test 0 = 0
++ local proc_file=/proc/sys/kernel/vshelper
++ test -r /proc/sys/kernel/vshelper
+++ cat /proc/sys/kernel/vshelper
++ vshelper=/sbin/vshelper
++ /usr/bin/cmp -s /sbin/vshelper /lib/util-vserver/vshelper
++ test -d /var/run/vshelper
++ test 0 -eq 0
++ return 0
++ /sbin/vserver-info - VERIFYCAP
++ /sbin/vserver-info - VERIFYPROC
++ mountRootFS /etc/vservers/hosting
++ local cfgdir=/etc/vservers/hosting
++ local vdir=/etc/vservers/hosting/vdir
++ local fstab=/etc/vservers/hosting/fstab
++ local xflag=
++ test -e /etc/vservers/hosting/fstab
++ pushd /etc/vservers/hosting/vdir
++ test -w etc -o -w etc/mtab
++ /lib/util-vserver/secure-mount -a --chroot --fstab /etc/vservers/hosting/fstab --rootfs only -n
++ popd
++ generateOptions /etc/vservers/hosting
++ _generateInterfaceOptions /etc/vservers/hosting
++ local iface
++ local ctx
++ test '!' -e /etc/vservers/hosting/context
++ read ctx
++ for iface in '"$1/interfaces/"*'
++ test -d /etc/vservers/hosting/interfaces/0
++ test '!' -e /etc/vservers/hosting/interfaces/0/disabled
++ _processSingleInterface /etc/vservers/hosting/interfaces/0
++ local iface=/etc/vservers/hosting/interfaces/0
++ local ip
++ local dev
++ local prefix
++ local mask
++ local bcast
++ local name
++ local scope
++ local mac
++ local extip
++ local up=up
++ _getInterfaceValue ip '' /etc/vservers/hosting/interfaces/0
++ local _giv_val=ip
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : 192.168.1.77
++ eval 'ip=$_giv_tmp'
+++ ip=192.168.1.77
++ _getInterfaceValue extip '' /etc/vservers/hosting/interfaces/0 /etc/vservers/hosting/interfaces/0/..
++ local _giv_val=extip
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'extip=$_giv_tmp'
+++ extip=
++ _getInterfaceValue dev '' /etc/vservers/hosting/interfaces/0 /etc/vservers/hosting/interfaces/0/..
++ local _giv_val=dev
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : eth0
++ eval 'dev=$_giv_tmp'
+++ dev=eth0
++ _getInterfaceValue prefix '' /etc/vservers/hosting/interfaces/0 /etc/vservers/hosting/interfaces/0/..
++ local _giv_val=prefix
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'prefix=$_giv_tmp'
+++ prefix=
++ _getInterfaceValue mask '' /etc/vservers/hosting/interfaces/0 /etc/vservers/hosting/interfaces/0/..
++ local _giv_val=mask
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : 255.255.255.0
++ eval 'mask=$_giv_tmp'
+++ mask=255.255.255.0
++ _getInterfaceValue bcast '' /etc/vservers/hosting/interfaces/0 /etc/vservers/hosting/interfaces/0/..
++ local _giv_val=bcast
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : 192.168.1.255
++ eval 'bcast=$_giv_tmp'
+++ bcast=192.168.1.255
++ _getInterfaceValue name '' /etc/vservers/hosting/interfaces/0
++ local _giv_val=name
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ : xyz0
++ eval 'name=$_giv_tmp'
+++ name=xyz0
++ _getInterfaceValue scope '' /etc/vservers/hosting/interfaces/0 /etc/vservers/hosting/interfaces/0/..
++ local _giv_val=scope
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'scope=$_giv_tmp'
+++ scope=
++ _getInterfaceValue mac '' /etc/vservers/hosting/interfaces/0
++ local _giv_val=mac
++ local _giv_dflt=
++ shift 2
++ local _giv_i
++ local _giv_tmp
++ :
++ eval 'mac=$_giv_tmp'
+++ mac=
++ test -n 192.168.1.77
++ test -n eth0 -o -e /etc/vservers/hosting/interfaces/0/nodev
++ test '!' -e /etc/vservers/hosting/interfaces/0/down
++ true
++ _transformMask2Prefix prefix '' 255.255.255.0
++ local _tm2p_tmp=
++ test -n ''
++ /lib/util-vserver/mask2prefix 255.255.255.0
++ _tm2p_tmp=24
++ eval 'prefix=$_tm2p_tmp'
+++ prefix=24
++ return 0
++ INTERFACES=("${INTERFACES[@]}" "$ip${prefix:+/$prefix}")
++ test '!' -e /etc/vservers/hosting/interfaces/0/nodev
++ break
++ _HAVE_INTERFACE_OPTIONS=1
++ test -n ''
++ _generateChbindOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local i
++ local bcast=
++ local nid=
++ test -n 1
++ local f=/etc/vservers/hosting/interfaces/bcast
++ getFileValue bcast /etc/vservers/hosting/interfaces/bcast
++ local _gfv_var=bcast
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/hosting/interfaces/bcast ''
++ findObject -f _gfv_file /etc/vservers/hosting/interfaces/bcast ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/interfaces/bcast
++ test '!' -f /etc/vservers/hosting/interfaces/bcast
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileValue nid /etc/vservers/hosting/ncontext /etc/vservers/hosting/context
++ local _gfv_var=nid
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/hosting/ncontext /etc/vservers/hosting/context ''
++ findObject -f _gfv_file /etc/vservers/hosting/ncontext /etc/vservers/hosting/context ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/ncontext
++ test '!' -f /etc/vservers/hosting/ncontext
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/context
++ test '!' -f /etc/vservers/hosting/context
++ _fo_file=/etc/vservers/hosting/context
++ break
++ test -z /etc/vservers/hosting/context -o -n /etc/vservers/hosting/context
++ eval '_gfv_file="/etc/vservers/hosting/context"'
+++ _gfv_file=/etc/vservers/hosting/context
++ test -n /etc/vservers/hosting/context -a -r /etc/vservers/hosting/context
++ eval read nid
+++ read nid
++ CHBIND_OPTS=($SILENT_OPT ${nid:+--nid "$nid"} ${bcast:+--bcast "$bcast"})
++ for i in '"${INTERFACES[@]}"'
++ CHBIND_OPTS=("${CHBIND_OPTS[@]}" --ip "$i")
++ _HAVE_CHBIND_OPTIONS=1
++ _generateNiceCommand /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local nice
++ test -r /etc/vservers/hosting/nice
++ return 0
++ _generateInitOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local cfgdir=/etc/vservers/hosting/apps/init
++ local i f
++ INITCMD_START=()
++ INITCMD_STOP=()
++ INITCMD_START_SYNC=()
++ INITCMD_STOP_SYNC=()
++ INITCMD_PREPARE=()
++ STOPCMD_PREPARE=()
++ INITKILL_SEQ=(15 5 9)
++ CHCONTEXT_INIT_OPTS=()
++ getFileValue INITSTYLE /etc/vservers/hosting/apps/init/style
++ local _gfv_var=INITSTYLE
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/hosting/apps/init/style ''
++ findObject -f _gfv_file /etc/vservers/hosting/apps/init/style ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/apps/init/style
++ test '!' -f /etc/vservers/hosting/apps/init/style
++ _fo_file=/etc/vservers/hosting/apps/init/style
++ break
++ test -z /etc/vservers/hosting/apps/init/style -o -n /etc/vservers/hosting/apps/init/style
++ eval '_gfv_file="/etc/vservers/hosting/apps/init/style"'
+++ _gfv_file=/etc/vservers/hosting/apps/init/style
++ test -n /etc/vservers/hosting/apps/init/style -a -r /etc/vservers/hosting/apps/init/style
++ eval read INITSTYLE
+++ read INITSTYLE
++ getFileValue RUNLEVEL_START /etc/vservers/hosting/apps/init/runlevel
++ local _gfv_var=RUNLEVEL_START
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/hosting/apps/init/runlevel ''
++ findObject -f _gfv_file /etc/vservers/hosting/apps/init/runlevel ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/apps/init/runlevel
++ test '!' -f /etc/vservers/hosting/apps/init/runlevel
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileValue RUNLEVEL_START /etc/vservers/hosting/apps/init/runlevel.start
++ local _gfv_var=RUNLEVEL_START
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/hosting/apps/init/runlevel.start ''
++ findObject -f _gfv_file /etc/vservers/hosting/apps/init/runlevel.start ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/apps/init/runlevel.start
++ test '!' -f /etc/vservers/hosting/apps/init/runlevel.start
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileValue RUNLEVEL_STOP /etc/vservers/hosting/apps/init/runlevel.stop
++ local _gfv_var=RUNLEVEL_STOP
++ local _gfv_file
++ shift
++ findFile _gfv_file /etc/vservers/hosting/apps/init/runlevel.stop ''
++ findObject -f _gfv_file /etc/vservers/hosting/apps/init/runlevel.stop ''
++ local _fo_mod=-f
++ local _fo_var=_gfv_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/apps/init/runlevel.stop
++ test '!' -f /etc/vservers/hosting/apps/init/runlevel.stop
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_gfv_file=""'
+++ _gfv_file=
++ test -n '' -a -r ''
++ return 0
++ getFileArray INITKILL_SEQ /etc/vservers/hosting/apps/init/killseq
++ test -r /etc/vservers/hosting/apps/init/killseq
++ return 1
++ :
++ case x"$INITSTYLE" in
++ INITCMD_START=(/sbin/init)
++ INITCMD_STOP=(/sbin/init)
++ _IS_FAKEINIT=1
++ _NEED_VSHELPER_SYNC=1
++ test -z ''
++ test -z ''
++ test xplain '!=' xrescue
++ getFileArray INITCMD_START /etc/vservers/hosting/apps/init/cmd.start
++ test -r /etc/vservers/hosting/apps/init/cmd.start
++ return 1
++ :
++ getFileArray INITCMD_STOP /etc/vservers/hosting/apps/init/cmd.stop
++ test -r /etc/vservers/hosting/apps/init/cmd.stop
++ return 1
++ :
++ getFileArray INITCMD_START_SYNC /etc/vservers/hosting/apps/init/cmd.start-sync
++ test -r /etc/vservers/hosting/apps/init/cmd.start-sync
++ return 1
++ :
++ getFileArray INITCMD_STOP_SYNC /etc/vservers/hosting/apps/init/cmd.stop-sync
++ test -r /etc/vservers/hosting/apps/init/cmd.stop-sync
++ return 1
++ :
++ getFileArray INITCMD_PREPARE /etc/vservers/hosting/apps/init/cmd.prepare
++ test -r /etc/vservers/hosting/apps/init/cmd.prepare
++ return 1
++ :
++ test -n '' -o -e /etc/vservers/hosting/apps/init/sync
++ INITCMD_START_SYNC=()
++ INITCMD_STOP_SYNC=()
++ _NEED_VSHELPER_SYNC=
++ vshelper.isEnabled
++ local f=disabled
++ test '!' -e /etc/vservers/.defaults/apps/vshelper/disabled
++ /sbin/vserver-info - FEATURE vshelper
++ test -n ''
++ return 0
++ vshelper.getSyncTimeout /etc/vservers/hosting VSHELPER_SYNC_TIMEOUT
++ local _vgst_appdir _vgst_file _vgst_tmp
+++ /sbin/vserver-info /etc/vservers/hosting APPDIR vshelper
++ _vgst_appdir=/etc/vservers/hosting/apps/vshelper
++ findFile _vgst_file /etc/vservers/hosting/apps/vshelper/sync-timeout /etc/vservers/.defaults/apps/vshelper/sync-timeout ''
++ findObject -f _vgst_file /etc/vservers/hosting/apps/vshelper/sync-timeout /etc/vservers/.defaults/apps/vshelper/sync-timeout ''
++ local _fo_mod=-f
++ local _fo_var=_vgst_file
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/apps/vshelper/sync-timeout
++ test '!' -f /etc/vservers/hosting/apps/vshelper/sync-timeout
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/.defaults/apps/vshelper/sync-timeout
++ test '!' -f /etc/vservers/.defaults/apps/vshelper/sync-timeout
++ for _fo_i in '"$@"'
++ test -n ''
++ continue
++ test -z '' -o -n ''
++ eval '_vgst_file=""'
+++ _vgst_file=
++ test -n ''
++ return 1
++ :
++ _generateChcontextOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local ctx hostname domainname
++ local cap_opts
++ local flag
++ test -z ''
++ _generateCapabilityOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local cap
++ _generateBCapabilityOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local cap
++ local f=/etc/vservers/hosting/bcapabilities
++ test -e /etc/vservers/hosting/bcapabilities
++ return 0
++ _generateCCapabilityOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local cap
++ local f=/etc/vservers/hosting/ccapabilities
++ test -e /etc/vservers/hosting/ccapabilities
++ return 0
++ test -e /etc/vservers/hosting/capabilities
++ return 0
++ _generateFlagOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ CHCONTEXT_FLAG_OPTS=()
++ test '!' -e /etc/vservers/hosting/flags
++ read flag
++ case x"$flag" in
++ OPTS_VATTRIBUTE=("${OPTS_VATTRIBUTE[@]}" --flag "$flag")
++ CHCONTEXT_FLAG_OPTS=("${CHCONTEXT_FLAG_OPTS[@]}" --flag "$flag")
++ read flag
++ case x"$flag" in
++ OPTS_VATTRIBUTE=("${OPTS_VATTRIBUTE[@]}" --flag "$flag")
++ CHCONTEXT_FLAG_OPTS=("${CHCONTEXT_FLAG_OPTS[@]}" --flag "$flag")
++ read flag
++ isAvoidNamespace /etc/vservers/hosting
++ local cfgdir
++ /sbin/vserver-info - FEATURE namespace
+++ /sbin/vserver-info /etc/vservers/hosting CFGDIR
++ cfgdir=/etc/vservers/hosting
++ test '!' -e /etc/vservers/hosting/namespace
++ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/hosting/nonamespace
++ USE_VNAMESPACE=1
++ CHCONTEXT_FLAG_OPTS=("${CHCONTEXT_FLAG_OPTS[@]}" --flag namespace)
++ CHCONTEXT_OPTS=($SILENT_OPT "${CHCONTEXT_FLAG_OPTS[@]}" "${CAP_OPTS[@]}" --secure ${ctx:+--ctx "$ctx"} ${hostname:+--hostname "$hostname"} ${domainname:+--domainname "$domainname"})
++ OPTS_VCONTEXT_CREATE=($SILENT_OPT ${ctx:+--xid "$ctx"})
++ OPTS_VATTRIBUTE=(--secure --flag default "${OPTS_VATTRIBUTE[@]}")
++ _generateScheduleOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local f=/etc/vservers/hosting/schedule
++ test -e /etc/vservers/hosting/schedule
++ return 0
++ _generatePersonalityOptions /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local f=/etc/vservers/hosting/personality
++ local type flags
++ test -s /etc/vservers/hosting/personality
++ return 0
++ test -n 1
++ CHCONTEXT_INIT_OPTS=(--disconnect --flag fakeinit)
++ OPTS_VCONTEXT_MIGRATE=("${OPTS_VCONTEXT_MIGRATE[@]}" --initpid --disconnect)
++ pushd /etc/vservers/hosting
++ execScriptlets /etc/vservers/hosting hosting prepre-start
++ declare -r vdir=/etc/vservers/hosting
++ declare -r name=hosting
++ declare -r flavor=prepre-start
++ local base i
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/hosting/scripts/prepre-start
++ test -f /etc/vservers/hosting/scripts/prepre-start
++ return 1
++ continue
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/hosting/scripts/prepre-start.d/*'
++ test -f '/etc/vservers/hosting/scripts/prepre-start.d/*'
++ return 1
++ continue
++ test -z '' -o -n ''
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/.defaults/scripts/prepre-start
++ test -f /etc/vservers/.defaults/scripts/prepre-start
++ return 1
++ continue
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/.defaults/scripts/prepre-start.d/*'
++ test -f '/etc/vservers/.defaults/scripts/prepre-start.d/*'
++ return 1
++ continue
++ test -z '' -o -n ''
++ popd
++ setDiskLimits /etc/vservers/hosting
++ local vdir=/etc/vservers/hosting
++ local dlimit
++ test -e /etc/vservers/hosting/context
++ for dlimit in '"$vdir/dlimits/"*'
++ test -d '/etc/vservers/hosting/dlimits/*'
++ continue
++ enableInterfaces /etc/vservers/hosting
++ local i=0
++ declare -a var
++ lock /var/lock/vserver.interfaces
+++ /usr/bin/mktemp -t vserver-lock.XXXXXX
++ local tmp=/tmp/vserver-lock.4UOynk
++ /usr/bin/rm -f /tmp/vserver-lock.4UOynk
++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.4UOynk
++ /lib/util-vserver/lockfile /var/lock/vserver.interfaces /tmp/vserver-lock.4UOynk
++ /usr/bin/grep -q true /tmp/vserver-lock.4UOynk
++ _VS_LOCKS='20238 8677 '
++ test 0 -lt 0
++ unlock 1
++ local num=1
++ local i
++ set -- 20238 8677
++ test 2 -gt 0
++ kill -HUP 20238
++ shift
++ test 1 '!=' 1
++ break
++ _VS_LOCKS=8677
++ have_interfaces=1
++ mountVserver /etc/vservers/hosting
++ local cfgdir=/etc/vservers/hosting
++ local ns_opt=
++ local vdir=/etc/vservers/hosting/vdir
++ local mtab_src
++ test -e /etc/vservers/hosting/fstab -o -e /etc/vservers/hosting/fstab.local -o -e /etc/vservers/hosting/fstab.remote
++ findObject -r mtab_src /etc/vservers/hosting/apps/init/mtab /etc/vservers/.defaults/init/mtab /lib/util-vserver/defaults/mtab /dev/null
++ local _fo_mod=-r
++ local _fo_var=mtab_src
++ local _fo_file=
++ local _fo_i=X
++ shift 2
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/hosting/apps/init/mtab
++ test '!' -r /etc/vservers/hosting/apps/init/mtab
++ for _fo_i in '"$@"'
++ test -n /etc/vservers/.defaults/init/mtab
++ test '!' -r /etc/vservers/.defaults/init/mtab
++ for _fo_i in '"$@"'
++ test -n /lib/util-vserver/defaults/mtab
++ test '!' -r /lib/util-vserver/defaults/mtab
++ _fo_file=/lib/util-vserver/defaults/mtab
++ break
++ test -z /lib/util-vserver/defaults/mtab -o -n /lib/util-vserver/defaults/mtab
++ eval 'mtab_src="/lib/util-vserver/defaults/mtab"'
+++ mtab_src=/lib/util-vserver/defaults/mtab
++ pushd /etc/vservers/hosting/vdir
++ /lib/util-vserver/chroot-sh truncate /etc/mtab
++ popd
++ test -n 1
++ test -z ''
++ _mountVserverInternal /etc/vservers/hosting/fstab
++ local fstab=/etc/vservers/hosting/fstab
++ local xflag=
++ test -e /etc/vservers/hosting/fstab
++ shift
++ pushd /etc/vservers/hosting/vdir
++ test -w etc -o -w etc/mtab
++ /lib/util-vserver/secure-mount -a --chroot --fstab /etc/vservers/hosting/fstab --rootfs no
++ popd
++ _mountVserverInternal /etc/vservers/hosting/fstab.local
++ local fstab=/etc/vservers/hosting/fstab.local
++ local xflag=
++ test -e /etc/vservers/hosting/fstab.local
++ return 0
++ _mountVserverInternal /etc/vservers/hosting/fstab.remote /sbin/chbind --silent --nid 2 --ip 192.168.1.77/24
++ local fstab=/etc/vservers/hosting/fstab.remote
++ local xflag=
++ test -e /etc/vservers/hosting/fstab.remote
++ return 0
++ isAvoidNamespace /etc/vservers/hosting
++ local cfgdir
++ /sbin/vserver-info - FEATURE namespace
+++ /sbin/vserver-info /etc/vservers/hosting CFGDIR
++ cfgdir=/etc/vservers/hosting
++ test '!' -e /etc/vservers/hosting/namespace
++ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/hosting/nonamespace
++ /lib/util-vserver/secure-mount --rbind -n /etc/vservers/hosting/vdir /
++ is_mounted=1
++ prepareInit /etc/vservers/hosting
++ pushd /etc/vservers/hosting/vdir
++ case "$INITSTYLE" in
++ /lib/util-vserver/chroot-sh rm .autofsck forcefsck
++ :
++ :
++ /lib/util-vserver/chroot-sh truncate fastboot
++ popd
++ pushd /etc/vservers/hosting/vdir/
++ execScriptlets /etc/vservers/hosting hosting pre-start
++ declare -r vdir=/etc/vservers/hosting
++ declare -r name=hosting
++ declare -r flavor=pre-start
++ local base i
++ for base in '"$vdir"/scripts' '"$__CONFDIR"/.defaults/scripts'
++ local DONT_SKIP_DEFAULTS=
++ local already_handled=
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile /etc/vservers/hosting/scripts/pre-start
++ test -f /etc/vservers/hosting/scripts/pre-start
++ case $1 in
++ return 0
++ test -r /etc/vservers/hosting/scripts/pre-start
++ already_handled=1
++ local start=
++ test -x /etc/vservers/hosting/scripts/pre-start
++ start=_sourceWrap
++ _sourceWrap /etc/vservers/hosting/scripts/pre-start pre-start hosting
++ local vdir name flavor start i already_handled base
++ . /etc/vservers/hosting/scripts/pre-start pre-start hosting
++ for i in '"$base/$flavor"' '"$base/$flavor.d"/*'
++ isRegularFile '/etc/vservers/hosting/scripts/pre-start.d/*'
++ test -f '/etc/vservers/hosting/scripts/pre-start.d/*'
++ return 1
++ continue
++ test -z 1 -o -n ''
++ break
++ popd
++ test -z ''
++ pushd /etc/vservers/hosting/vdir/
++ is_configured=1
++ /sbin/vserver-info - FEATURE migrate
++ /sbin/chbind --silent --nid 2 --ip 192.168.1.77/24 -- /lib/util-vserver/exec-ulimit /etc/vservers/hosting/ulimits /sbin/vcontext --create --silent --xid 2 -- /sbin/vnamespace --set -- /sbin/vlimit --dir /etc/vservers/hosting/rlimits --missingok -- /sbin/vsched --xid self -- /sbin/vuname --xid self --dir /etc/vservers/hosting/uts --missingok -- /sbin/vuname --xid self --set -t context=/etc/vservers/hosting -- /sbin/vattribute --set --secure --flag default --flag fakeinit --flag lock --flag nproc -- /lib/util-vserver/save_ctxinfo /etc/vservers/hosting /usr/bin/env -i -- /sbin/vcontext --migrate-self --endsetup --chroot --silent --initpid --disconnect -- /sbin/init
save_ctxinfo: execv(): No such file or directory
+ cleanup
+ set +e
+ test -z ''
+ test -z ''
+ test -n 1 -a -z ''
+ warning '
An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the '\''apt-rpm'\'' build
  method knows how to deal with this, but on existing installations,
  appending '\''true'\'' to this file will help.'
+ test -n ''
+ echo '
An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the '\''apt-rpm'\'' build
  method knows how to deal with this, but on existing installations,
  appending '\''true'\'' to this file will help.'

An error occured while executing the vserver startup sequence; when
there are no other messages, it is very likely that the init-script
(/sbin/init) failed.

Common causes are:
* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
  method knows how to deal with this, but on existing installations,
  appending 'true' to this file will help.
+ test -n ''
+ warning '

Failed to start vserver '\''hosting'\'''
+ test -n ''
+ echo '

Failed to start vserver '\''hosting'\'''


Failed to start vserver 'hosting'
+ test -n --debug
+ test -z 1
+ umountVserver /etc/vservers/hosting
+ local cfgdir=/etc/vservers/hosting
+ local vdir=/etc/vservers/hosting/vdir
+ local is_ok=1
+ isAvoidNamespace /etc/vservers/hosting
+ local cfgdir
+ /sbin/vserver-info - FEATURE namespace
++ /sbin/vserver-info /etc/vservers/hosting CFGDIR
+ cfgdir=/etc/vservers/hosting
+ test '!' -e /etc/vservers/hosting/namespace
+ test -e /etc/vservers/.defaults/nonamespace -o -e /etc/vservers/hosting/nonamespace
+ return 0
+ test -z 1
+ disableInterfaces /etc/vservers/hosting
+ test -n 1
+ local i=0
+ declare -a var
+ lock /var/lock/vserver.interfaces
++ /usr/bin/mktemp -t vserver-lock.XXXXXX
+ local tmp=/tmp/vserver-lock.UhHsZc
+ /usr/bin/rm -f /tmp/vserver-lock.UhHsZc
+ /usr/bin/mkfifo -m600 /tmp/vserver-lock.UhHsZc
+ /lib/util-vserver/lockfile /var/lock/vserver.interfaces /tmp/vserver-lock.UhHsZc
+ /usr/bin/grep -q true /tmp/vserver-lock.UhHsZc
+ _VS_LOCKS='25958 8677'
+ test 0 -gt 0
+ unlock 1
+ local num=1
+ local i
+ set -- 25958 8677
+ test 2 -gt 0
+ kill -HUP 25958
+ shift
+ test 1 '!=' 1
+ break
+ _VS_LOCKS=8677
+ unlock
+ local num=
+ local i
+ set -- 8677
+ test 1 -gt 0
+ kill -HUP 8677
+ shift
+ test '' '!=' 1
+ test -z ''
+ test 0 -gt 0
+ _VS_LOCKS=