From 4b1e6f05fde6d4cf637ff335957beeb410dbff4c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 7 Dec 2015 00:15:53 +0100 Subject: [PATCH] Added logs for websocket server. --- script/websocket-server.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/websocket-server.rb b/script/websocket-server.rb index fc29de9b8..b31818c48 100755 --- a/script/websocket-server.rb +++ b/script/websocket-server.rb @@ -81,6 +81,11 @@ if ARGV[0] == 'start' && @options[:d] Daemons.daemonize + Dir.chdir dir + name = 'websocket-server' + $stdout.reopen( dir + '/log/' + name + '_out.log', 'w') + $stderr.reopen( dir + '/log/' + name + '_err.log', 'w') + # create pid file daemon_pid = File.new( @options[:i].to_s, 'w' ) daemon_pid.sync = true