summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot
diff options
context:
space:
mode:
Diffstat (limited to 'runsc/boot')
-rw-r--r--runsc/boot/controller.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/runsc/boot/controller.go b/runsc/boot/controller.go
index 564f2d271..ae727f144 100644
--- a/runsc/boot/controller.go
+++ b/runsc/boot/controller.go
@@ -44,6 +44,9 @@ const (
// processes running in a container.
ContainerProcesses = "containerManager.Processes"
+ // ContainerResume unpauses the paused container.
+ ContainerResume = "containerManager.Resume"
+
// ContainerSignal is used to send a signal to a container.
ContainerSignal = "containerManager.Signal"
@@ -156,12 +159,18 @@ func (cm *containerManager) Checkpoint(o *control.SaveOpts, _ *struct{}) error {
return state.Save(o, nil)
}
-// Pause suspends the process in a container.
+// Pause suspends a container.
func (cm *containerManager) Pause(_, _ *struct{}) error {
cm.k.Pause()
return nil
}
+// Resume unpauses a container.
+func (cm *containerManager) Resume(_, _ *struct{}) error {
+ cm.k.Unpause()
+ return nil
+}
+
// Wait waits for the init process in the given container.
func (cm *containerManager) Wait(cid *string, waitStatus *uint32) error {
// TODO: Use the cid and wait on the init process in that