dom0: move shutdown to qvm-core
This commit is contained in:
parent
dfd0f73e30
commit
abcd6416fc
@ -1082,6 +1082,13 @@ class QubesVm(object):
|
|||||||
|
|
||||||
return xid
|
return xid
|
||||||
|
|
||||||
|
def shutdown(self):
|
||||||
|
if dry_run:
|
||||||
|
return
|
||||||
|
|
||||||
|
subprocess.call (['/usr/sbin/xl', 'shutdown', self.name])
|
||||||
|
#xc.domain_destroy(self.get_xid())
|
||||||
|
|
||||||
def force_shutdown(self):
|
def force_shutdown(self):
|
||||||
if dry_run:
|
if dry_run:
|
||||||
return
|
return
|
||||||
|
@ -80,7 +80,7 @@ def vm_run_cmd(vm, cmd, options):
|
|||||||
if options.shutdown:
|
if options.shutdown:
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
print >> sys.stderr, "Shutting down VM: '{0}'...".format(vm.name)
|
print >> sys.stderr, "Shutting down VM: '{0}'...".format(vm.name)
|
||||||
subprocess.call (["/usr/sbin/xl", "shutdown", vm.name])
|
vm.shutdown()
|
||||||
return
|
return
|
||||||
|
|
||||||
if options.pause:
|
if options.pause:
|
||||||
|
Loading…
Reference in New Issue
Block a user