[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID a55d4a167203e867ee280e3544a8bad769f0e75b
# Parent  f85f52b508c365da0255870ff7325980dd8f78fe
Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before
trying to save into it.
 
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r f85f52b508c3 -r a55d4a167203 tools/examples/init.d/xendomains
--- a/tools/examples/init.d/xendomains  Wed Dec 14 11:54:39 2005
+++ b/tools/examples/init.d/xendomains  Wed Dec 14 11:56:25 2005
@@ -347,6 +347,7 @@
            echo -n "(save)"
            watchdog_xm save &
            WDOG_PID=$!
+           mkdir -p "$XENDOMAINS_SAVE"
            xm save $id $XENDOMAINS_SAVE/$name
            if test $? -ne 0; then
                rc_failed $?

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.