Class: OsCtld::Commands::Container::OomdRestart

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

Instance Method Summary collapse

Methods included from OomdGuard

#verify_oomd_run!, #with_oomd_run

Methods inherited from Restart

#find

Methods included from Utils::SwitchUser

#ct_attach, #ct_syscmd

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_restart.rb', line 8

def execute(ct)
  with_oomd_run(ct) do
    @opts = opts.merge(stop_method: 'kill', reboot: false)
    super
  end
end