WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XM] Print shorthelp of xm shutdown.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM] Print shorthelp of xm shutdown.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2006 21:51:47 +0000
Delivery-date: Fri, 28 Jul 2006 14:55:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 7e25295d8d9d2ccde939f95f7f94c812db5fe251
# Parent  98ee83ed9d286e5ac49e445aa7fe73f224ffa756
[XM] Print shorthelp of xm shutdown.

# xm shutdown
Error: 'xm shutdown' requires between 1 and 4 arguments.

   shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

# xm shutdown vm1 -w -a -R -H
Error: 'xm shutdown' requires between 1 and 4 arguments.

   shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

diff -r 98ee83ed9d28 -r 7e25295d8d9d tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Jul 28 17:35:39 2006 +0100
+++ b/tools/python/xen/xm/main.py       Fri Jul 28 17:36:08 2006 +0100
@@ -569,6 +569,11 @@ def xm_reboot(args):
     from xen.xm import shutdown
     shutdown.main(["shutdown", "-R"] + args)
 
+def xm_shutdown(args):
+    arg_check(args, "shutdown", 1, 4)
+    from xen.xm import shutdown
+    shutdown.main(["shutdown"] + args)
+
 def xm_pause(args):
     arg_check(args, "pause", 1)
     dom = args[0]
@@ -1109,6 +1114,7 @@ commands = {
     "restore": xm_restore,
     "save": xm_save,
     "reboot": xm_reboot,
+    "shutdown": xm_shutdown,
     "list": xm_list,
     # memory commands
     "mem-max": xm_mem_max,
@@ -1151,7 +1157,6 @@ subcommands = [
     'create',
     'migrate',
     'sysrq',
-    'shutdown',
     'labels',
     'addlabel',
     'rmlabel',

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XM] Print shorthelp of xm shutdown., Xen patchbot-unstable <=