about summary refs log tree commit homepage
path: root/examples/zbatery.conf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zbatery.conf.rb')
-rw-r--r--examples/zbatery.conf.rb9
1 files changed, 7 insertions, 2 deletions
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