Altered the way services start/stop

This commit is contained in:
G. Gibson 2023-02-28 10:22:56 -08:00
parent 8ef194a5f3
commit 6264fa88fa

View file

@ -237,7 +237,8 @@ module GxG
def self.start_service(moniker=nil)
if moniker.is_a?(::Symbol)
if ::GxG::SERVICES[(moniker)]
::GxG::SERVICES[(moniker)].start
# ::GxG::SERVICES[(moniker)].start
::GxG::SERVICES[(moniker)].call_event({:start => nil})
end
end
end
@ -245,7 +246,8 @@ module GxG
def self.stop_service(moniker=nil)
if moniker.is_a?(::Symbol)
if ::GxG::SERVICES[(moniker)]
::GxG::SERVICES[(moniker)].stop
# ::GxG::SERVICES[(moniker)].stop
::GxG::SERVICES[(moniker)].call_event({:stop => nil})
end
end
end