mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-08-15 02:15:59 -07:00
Altered the way services start/stop
This commit is contained in:
parent
8ef194a5f3
commit
6264fa88fa
1 changed files with 4 additions and 2 deletions
|
|
@ -237,7 +237,8 @@ module GxG
|
||||||
def self.start_service(moniker=nil)
|
def self.start_service(moniker=nil)
|
||||||
if moniker.is_a?(::Symbol)
|
if moniker.is_a?(::Symbol)
|
||||||
if ::GxG::SERVICES[(moniker)]
|
if ::GxG::SERVICES[(moniker)]
|
||||||
::GxG::SERVICES[(moniker)].start
|
# ::GxG::SERVICES[(moniker)].start
|
||||||
|
::GxG::SERVICES[(moniker)].call_event({:start => nil})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -245,7 +246,8 @@ module GxG
|
||||||
def self.stop_service(moniker=nil)
|
def self.stop_service(moniker=nil)
|
||||||
if moniker.is_a?(::Symbol)
|
if moniker.is_a?(::Symbol)
|
||||||
if ::GxG::SERVICES[(moniker)]
|
if ::GxG::SERVICES[(moniker)]
|
||||||
::GxG::SERVICES[(moniker)].stop
|
# ::GxG::SERVICES[(moniker)].stop
|
||||||
|
::GxG::SERVICES[(moniker)].call_event({:stop => nil})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue