about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--examples/watcher_demo.ru2
-rw-r--r--examples/zbatery.conf.rb9
2 files changed, 7 insertions, 4 deletions
diff --git a/examples/watcher_demo.ru b/examples/watcher_demo.ru
index 2d74b09..36a9ed3 100644
--- a/examples/watcher_demo.ru
+++ b/examples/watcher_demo.ru
@@ -3,7 +3,5 @@
 #
 # zbatery -c zbatery.conf.ru watcher_demo.ru -E none
 require "raindrops"
-require "clogger" # http://clogger.rubyforge.org/
-use Clogger, :format => Clogger::Format::Rack_1_0, :logger => $stdout
 use Raindrops::Middleware
 run Raindrops::Watcher.new :listeners => %w(0.0.0.0:80 /tmp/.raindrops)
diff --git a/examples/zbatery.conf.rb b/examples/zbatery.conf.rb
index 7feee32..8c78ce4 100644
--- a/examples/zbatery.conf.rb
+++ b/examples/zbatery.conf.rb
@@ -4,5 +4,10 @@
 Rainbows! do
   use :ThreadSpawn
 end
-stderr_path "/var/log/rainbows/stderr.log"
-stdout_path "/var/log/rainbows/stdout.log"
+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"
+  user "www-data", "www-data"
+  listen "/tmp/.raindrops"
+end