Skip to content

Commit

Permalink
Ignore bad output for autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Nov 2, 2010
1 parent aad3ddb commit e1d6203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nats/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def try_autostart_succeeded?(uri)
log_arg = '-l /tmp/nats-server.log'
pid_arg = '-P /tmp/nats-server.pid'
# daemon mode to release client
system("nats-server #{port_arg} #{user_arg} #{pass_arg} #{log_arg} #{pid_arg} -d")
system("nats-server #{port_arg} #{user_arg} #{pass_arg} #{log_arg} #{pid_arg} -d 2> /dev/null")
$? == 0
end

Expand Down

0 comments on commit e1d6203

Please sign in to comment.