core bug fix -- init event fix

This commit is contained in:
G. Gibson 2026-07-05 19:58:55 -07:00
parent eeef32d8cf
commit 5449154af7

View file

@ -1777,6 +1777,9 @@ module GxG
end end
# ### Define The Core Service: # ### Define The Core Service:
core_service = ::GxG::Services::Service.new(:core) core_service = ::GxG::Services::Service.new(:core)
# ### Provide Universal Resource Access
core_service[:resources] = ::GxG::Services::UniversalResourcesAccess.new()
#
# ### Define Public Command Interface: # ### Define Public Command Interface:
core_service.on(:start, {:description => "System Service Layer Start", :usage => "{ :start => nil }", :users => false}) do core_service.on(:start, {:description => "System Service Layer Start", :usage => "{ :start => nil }", :users => false}) do
::GxG::SERVICES[:core].start ::GxG::SERVICES[:core].start
@ -1800,16 +1803,6 @@ core_service.on(:at_start, {:description => "System Service Layer Startup", :usa
::GxG::Engine::determine_event_allocations() ::GxG::Engine::determine_event_allocations()
::GxG::Engine::determine_loads() ::GxG::Engine::determine_loads()
end end
end
core_service.on(:at_stop, {:description => "System Service Layer Shutdown", :usage => "{ :at_stop => (service-object) }", :public => false}) do |service, credential|
# ### Stop Services
::GxG::Services::stop_order().each do |the_service_moniker|
unless the_service_moniker == :core
log_info("Stopping Service: #{the_service_moniker.inspect} ...")
::GxG::Services::stop_service(the_service_moniker)
end
end
#
# ### Load Services # ### Load Services
if service.configuration()[:available] if service.configuration()[:available]
service.configuration()[:available].each do |moniker| service.configuration()[:available].each do |moniker|
@ -1838,10 +1831,17 @@ core_service.on(:at_stop, {:description => "System Service Layer Shutdown", :usa
end end
# #
end end
#
end end
# ### Provide Universal Resouce Access core_service.on(:at_stop, {:description => "System Service Layer Shutdown", :usage => "{ :at_stop => (service-object) }", :public => false}) do |service, credential|
core_service[:resources] = ::GxG::Services::UniversalResourcesAccess.new() # ### Stop Services
::GxG::Services::stop_order().each do |the_service_moniker|
unless the_service_moniker == :core
log_info("Stopping Service: #{the_service_moniker.inspect} ...")
::GxG::Services::stop_service(the_service_moniker)
end
end
#
end
# #
unless core_service.configuration()[:available] unless core_service.configuration()[:available]
core_service.configuration()[:available] = [] core_service.configuration()[:available] = []