Class: OsCtld::Daemon::Hooks::PreStop

Inherits:
Hook::Base
  • Object
show all
Defined in:
lib/osctld/daemon.rb

Instance Attribute Summary

Attributes inherited from Hook::Base

#event_instance, #opts

Instance Method Summary collapse

Methods inherited from Hook::Base

blocking, blocking?, #blocking?, #exec, #executable, hook, #initialize, #setup

Constructor Details

This class inherits a constructor from OsCtld::Hook::Base

Instance Method Details

#environmentObject (protected)



301
302
303
304
305
306
# File 'lib/osctld/daemon.rb', line 301

def environment
  super.merge({
                'OSCTL_DAEMON_STATE' => 'stopping',
                'OSCTL_DAEMON_PID' => Process.pid.to_s
              })
end