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

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



# 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


 


Rackspace

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