raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
blob 5f94c0ee0fc15285fced2725c813943c9e00a7c8 626 bytes (raw)
$ git show v0.19.1:examples/zbatery.conf.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
# Used for running Raindrops::Watcher, which requires a multi-threaded
# Rack server capable of streaming a response.  Threads must be used,
# so any multi-threaded Rack server may be used.
# zbatery was recommended in the past, but it is abandoned
# <http://zbatery.bogomip.org/>.
# yahns may work as an alternative (see yahns.conf.rb in this dir)
Rainbows! do
  use :ThreadSpawn
end
log_dir = "/var/log/zbatery"
if File.writable?(log_dir) && File.directory?(log_dir)
  stderr_path "#{log_dir}/raindrops-demo.stderr.log"
  stdout_path "#{log_dir}/raindrops-demo.stdout.log"
  listen "/tmp/.r"
  pid "/tmp/.raindrops.pid"
end

git clone https://yhbt.net/raindrops.git