Module: Trinidad::Daemon
Instance Method Summary collapse
- #init ⇒ Object
-
#setup? ⇒ Boolean
checked from com.msp.jsvc.JRubyDaemon.init as Trinidad::Daemon#setup? to check whether daemon’s init setup has been succesful …
-
#start(args = ARGV) ⇒ Object
called from com.msp.jsvc.JRubyDaemon.start as Trinidad::Daemon#start.
-
#stop ⇒ Object
called from com.msp.jsvc.JRubyDaemon.stop as Trinidad::Daemon#stop.
Instance Method Details
#init ⇒ Object
11 12 |
# File 'lib/trinidad/daemon.rb', line 11 def init end |
#setup? ⇒ Boolean
checked from com.msp.jsvc.JRubyDaemon.init as Trinidad::Daemon#setup? to check whether daemon’s init setup has been succesful …
17 18 19 |
# File 'lib/trinidad/daemon.rb', line 17 def setup? true end |
#start(args = ARGV) ⇒ Object
called from com.msp.jsvc.JRubyDaemon.start as Trinidad::Daemon#start
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/trinidad/daemon.rb', line 23 def start(args = ARGV) if Trinidad.const_defined?(:CLI) config = Trinidad::CLI.parse(args) config[:trap] = false @server = Trinidad::Server.new(config) else # backwards (< 1.5) compatibility : Trinidad::CommandLineParser.parse(args) Trinidad.configuration.trap = false @server = Trinidad::Server.new end @server.start end |
#stop ⇒ Object
called from com.msp.jsvc.JRubyDaemon.stop as Trinidad::Daemon#stop
39 40 41 |
# File 'lib/trinidad/daemon.rb', line 39 def stop @server.stop end |