diff --git a/script/websocket-server.rb b/script/websocket-server.rb index 578b4fdcf..c2bd17aa7 100755 --- a/script/websocket-server.rb +++ b/script/websocket-server.rb @@ -59,11 +59,11 @@ if ARGV[0] != 'start' && ARGV[0] != 'stop' exit end -puts "Starting websocket server on #{@options[:b]}:#{@options[:p]} (secure:#{@options[:s]},pid:#{@options[:i]})" -#puts options.inspect - if ARGV[0] == 'stop' + puts "Stopping websocket server (pid:#{@options[:i]})" + #puts options.inspect + # read pid pid = File.open( @options[:i].to_s ).read pid.gsub!(/\r|\n/, '') @@ -74,6 +74,9 @@ if ARGV[0] == 'stop' end if ARGV[0] == 'start' && @options[:d] + puts "Starting websocket server on #{@options[:b]}:#{@options[:p]} (secure:#{@options[:s]},pid:#{@options[:i]})" + #puts options.inspect + Daemons.daemonize # create pid file