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

[Xen-changelog] [xen-unstable] Fix typos in xendomains script.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1234868648 0
# Node ID cb8ece5d764755e7f6fd4698a84d8e24f1d946b3
# Parent  6630f99dfc01e4fe6459d596d4c3dc5dbb46a1cc
Fix typos in xendomains script.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/hotplug/Linux/init.d/xendomains |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff -r 6630f99dfc01 -r cb8ece5d7647 tools/hotplug/Linux/init.d/xendomains
--- a/tools/hotplug/Linux/init.d/xendomains     Tue Feb 17 11:01:05 2009 +0000
+++ b/tools/hotplug/Linux/init.d/xendomains     Tue Feb 17 11:04:08 2009 +0000
@@ -233,7 +233,7 @@ start()
                     XMR=`xm restore $dom 2>&1 1>/dev/null`
                     #xm restore $dom
                     if [ $? -ne 0 ]; then
-                       echo -e "\nAn error occured while restoring domain 
${dom##*/}:\n$XMR"
+                        echo -e "\nAn error occurred while restoring domain 
${dom##*/}:\n$XMR"
                         rc_failed $?
                         echo -e '!'
                     else
@@ -267,8 +267,8 @@ start()
                echo -n "(skip)"
            else
                XMC=`xm create --quiet --defconfig $dom`
-               if [ $? -ne 0 ]; then
-                    echo -e "\nAn error occured while creating domain 
${dom##*/}: $XMC\n"
+               if [ $? -ne 0 ]; then
+                   echo -e "\nAn error occurred while creating domain 
${dom##*/}: $XMC\n"
                    rc_failed $?
                    echo -e '!'
                else
@@ -357,7 +357,7 @@ stop()
                echo -n "(SR-$sysrq)"
                XMR=`xm sysrq $id $sysrq 2>&1 1>/dev/null`
                if test $? -ne 0; then
-                    echo -e "\nAn error occured while doing sysrq on 
domain:\n$XMR\n"
+                   echo -e "\nAn error occurred while doing sysrq on 
domain:\n$XMR\n"
                    rc_failed $?
                    echo -n '!'
                fi
@@ -375,7 +375,7 @@ stop()
            WDOG_PID=$!
            XMR=`xm migrate $id $XENDOMAINS_MIGRATE 2>&1 1>/dev/null`
            if test $? -ne 0; then
-                echo -e "\nAn error occured while migrating domain:\n$XMR\n"
+               echo -e "\nAn error occurred while migrating domain:\n$XMR\n"
                rc_failed $?
                echo -e '!'
 
@@ -395,7 +395,7 @@ stop()
            mkdir -p "$XENDOMAINS_SAVE"
            XMR=`xm save $id $XENDOMAINS_SAVE/$name 2>&1 1>/dev/null`
            if test $? -ne 0; then
-                echo -e "\nAn error occured while saving domain:\n$XMR\n"
+               echo -e "\nAn error occurred while saving domain:\n$XMR\n"
                rc_failed $?
                echo -e '!'
                kill $WDOG_PID >/dev/null 2>&1
@@ -413,7 +413,7 @@ stop()
            WDOG_PID=$!
            XMR=`xm shutdown $id $XENDOMAINS_SHUTDOWN 2>&1 1>/dev/null`
            if test $? -ne 0; then
-                echo -e "\nAn error occured while shutting down 
domain:\n$XMR\n"
+               echo -e "\nAn error occurred while shutting down 
domain:\n$XMR\n"
                rc_failed $?
                echo -e '!'
            fi
@@ -432,7 +432,7 @@ stop()
        WDOG_PID=$!
        XMR=`xm shutdown $XENDOMAINS_SHUTDOWN_ALL 2>&1 1>/dev/null`
        if test $? -ne 0; then
-            echo -e "\nAn error occured while shutting down all domains: 
$XMR\n"
+           echo -e "\nAn error occurred while shutting down all domains: 
$XMR\n"
            rc_failed $?
            echo -e '!'
        fi

_______________________________________________
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®.