From d0f61ed0f6dc64284752a6cc9fd519609e4370a3 Mon Sep 17 00:00:00 2001 From: Dan Hunsaker Date: Wed, 8 Oct 2014 17:02:06 -0600 Subject: [PATCH] Add suspend/resume support to pvectl Now that the API supports CT suspend/resume, it makes sense to have pvectl support it, too. It *does* use different names than vzctl does, but it seems to make sense to be consistent with the API naming in a PVE utility. Signed-off-by: Dan Hunsaker --- bin/pvectl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/pvectl b/bin/pvectl index f8ae3ad1..8f2643d9 100755 --- a/bin/pvectl +++ b/bin/pvectl @@ -74,6 +74,8 @@ my $cmddef = { }], start => [ 'PVE::API2::OpenVZ', 'vm_start', ['vmid'], { node => $nodename }, $upid_exit], + suspend => [ 'PVE::API2::OpenVZ', 'vm_suspend', ['vmid'], { node => $nodename }, $upid_exit], + resume => [ 'PVE::API2::OpenVZ', 'vm_resume', ['vmid'], { node => $nodename }, $upid_exit], shutdown => [ 'PVE::API2::OpenVZ', 'vm_shutdown', ['vmid'], { node => $nodename }, $upid_exit], stop => [ 'PVE::API2::OpenVZ', 'vm_stop', ['vmid'], { node => $nodename }, $upid_exit], mount => [ 'PVE::API2::OpenVZ', 'vm_mount', ['vmid'], { node => $nodename }, $upid_exit],