Class: OsCtld::Commands::Container::OomdStop

Inherits:
Stop
  • Object
show all
Includes:
OomdGuard
Defined in:
lib/osctld/commands/container/oomd_stop.rb

Instance Method Summary collapse

Methods included from OomdGuard

#verify_oomd_run!, #with_oomd_run

Methods inherited from Stop

#find, #force_kill

Methods included from Utils::SwitchUser

#ct_attach, #ct_syscmd

Methods included from Utils::Container

#format_unavailable_repositories, #get_image_path, #get_image_path!, #get_repositories, #image_not_found_message, #image_spec, #image_unavailable_message, #remove_accounting_cgroups, #with_image_path, #with_repository_image_path!

Methods inherited from Logged

#base_execute, #find

Instance Method Details

#execute(ct) ⇒ Object



8
9
10
11
12
13
# File 'lib/osctld/commands/container/oomd_stop.rb', line 8

def execute(ct)
  with_oomd_run(ct) do
    @opts = opts.merge(method: 'kill')
    super
  end
end