diff options
author | Azul <azul@riseup.net> | 2016-07-04 10:49:10 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-07-04 10:49:10 +0200 |
commit | 6732fef4df156a02ed83f006f19f66cf567b5340 (patch) | |
tree | 14824b08c4d0889e9767171ac5bafe3316a607f9 | |
parent | e81c1a8cf274a13903be00c74c975c0cb2c20995 (diff) |
fix start / stop script
I have to admit I don't completely understand what is going on here.
https://github.com/celluloid/celluloid/wiki/Frequently-Asked-Questions says
you can either use sleep after initiating the actors or call run on them.
But this might not be true for reel. At least run did not work and now
new; sleep seems to work fine.
-rwxr-xr-x | bin/nickserver | 1 | ||||
-rw-r--r-- | lib/nickserver/reel_server.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/nickserver b/bin/nickserver index 8cf0738..93dfd53 100755 --- a/bin/nickserver +++ b/bin/nickserver @@ -21,4 +21,5 @@ require 'nickserver' Nickserver::Daemon.run('nickserver') do Nickserver::Server.start + sleep end diff --git a/lib/nickserver/reel_server.rb b/lib/nickserver/reel_server.rb index 8e17bc6..6f05e0b 100644 --- a/lib/nickserver/reel_server.rb +++ b/lib/nickserver/reel_server.rb @@ -8,7 +8,7 @@ module Nickserver class ReelServer < Reel::Server::HTTP def self.start(options = {}) - new(options[:host], options[:port]).run + new(options[:host], options[:port]) end def initialize(host = "127.0.0.1", port = 3000) |