[Pkg-xen-devel] Bug#655302: Bug#655302: xcp-xapi: init script will slow down boot process

Thomas Goirand zigo at debian.org
Tue Jan 10 10:49:02 UTC 2012


On 01/10/2012 11:26 PM, Ritesh Raj Sarraf wrote:
> Package: xcp-xapi
> Version: 1.3-15
> Severity: wishlist
> 
> The current initscript has the possibility of slowing down the boot process by 50 seconds. If this is required, it probably
> should be backgrounded.
> 
> # Wait for xapi to write its "init complete" cookie: after here it's safe to modify templates.
> wait_for_xapi() {
>     MAX_RETRIES=50
>     RETRY=0
>     while [ ${RETRY} -lt ${MAX_RETRIES} ]; do
>         if [ -e ${XAPI_STARTUP_COOKIE} ]; then
>             return 0
>         fi
>         sleep 1
>         RETRY=$(( ${RETRY} + 1 ))
>     done
>     return 1
> }

Hi, and thanks for your bug report.

How is this an issue when we are using parallel booting with insserv?

Also, in a normal situation, this would *not* happen, so I really don't
see what the issue is here. Did you see it and had to wait 50 seconds?

Thomas

P.S: Note that I'm always using remote servers, so I don't see often
what's on the console (unless I open the KVM over IP console).





More information about the Pkg-xen-devel mailing list