direct-io.hg

changeset 8359:a55d4a167203

Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before
trying to save into it.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Dec 14 11:56:25 2005 +0000 (2005-12-14)
parents f85f52b508c3
children 30f54abf9592
files tools/examples/init.d/xendomains
line diff
     1.1 --- a/tools/examples/init.d/xendomains	Wed Dec 14 11:54:39 2005 +0000
     1.2 +++ b/tools/examples/init.d/xendomains	Wed Dec 14 11:56:25 2005 +0000
     1.3 @@ -347,6 +347,7 @@ stop()
     1.4  	    echo -n "(save)"
     1.5  	    watchdog_xm save &
     1.6  	    WDOG_PID=$!
     1.7 +	    mkdir -p "$XENDOMAINS_SAVE"
     1.8  	    xm save $id $XENDOMAINS_SAVE/$name
     1.9  	    if test $? -ne 0; then
    1.10  		rc_failed $?