Class: OsCtld::ContainerControl::Commands::Freeze::Frontend

Inherits:
Frontend
  • Object
show all
Defined in:
lib/osctld/container_control/commands/freeze.rb

Constant Summary

Constants inherited from Frontend

Frontend::FAILED_RUNNER_GRACE

Instance Attribute Summary

Attributes inherited from Frontend

#command_class, #ct

Instance Method Summary collapse

Methods inherited from Frontend

#cleanup_runner_cgroup, #exec_runner, #fork_runner, #initialize, #reap_failed_runner, #runner_result, #write_runner_failure

Constructor Details

This class inherits a constructor from OsCtld::ContainerControl::Frontend

Instance Method Details

#execute ⇒ true

Returns:

  • (true)


9
10
11
12
13
14
15
# File 'lib/osctld/container_control/commands/freeze.rb', line 9

def execute
  # liblxc freezes the container from its host-side control context.
  # Joining the running guest is unnecessary and can be rejected by the
  # coupled syslog/tracing namespace boundary.
  ret = fork_runner
  ret.ok? || ret
end