<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 .tmp_*
 *.tmproj
-log/*.log
+log/*
 config/database.yml
 config/amazon_s3.yml
 vendor/rails
@@ -18,4 +18,4 @@ db/*.sqlite3
 .project
 doc/coverage
 coverage
-attachment_fu_plugin.sqlite3.db
\ No newline at end of file
+attachment_fu_plugin.sqlite3.db</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,32 @@
 require 'rubygems'
 require 'daemons'
 
-root = File.expand_path(File.dirname(__FILE__) + '/../')
+#Tweak the daemons code so that we can specify the logdir seperately from the piddir
+module Daemons
+  class Application
+    def logdir
+      logdir = options[:log_dir]
+      unless logdir
+        logdir = options[:dir_mode] == :system ? '/var/log' : pidfile_dir
+      end
+      logdir
+    end
+
+    def output_logfile
+      (options[:log_output] &amp;&amp; logdir) ? File.join(logdir, @group.app_name + '.output') : nil
+    end
 
+    def logfile
+      logdir ? File.join(logdir, @group.app_name + '.log') : nil
+    end
+  end
+end
+
+root = File.expand_path(File.dirname(__FILE__) + '/../')
 Daemons.run(
   File.join(root, 'script', 'rss_feed_fetcher.rb'),
   :dir_mode =&gt; :normal, :dir =&gt; (root + '/tmp/pids'),
+  :log_dir =&gt; File.join(root, 'log'),
   :log_output =&gt; true,
   :backtrace =&gt; true
 )</diff>
      <filename>script/rss_feed_fetcher_daemon</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>df7b192aa172a6a6c1fbfc6411302ad60d56f3c5</id>
    </parent>
  </parents>
  <author>
    <name>Michael Hale</name>
    <email>mikehale@gmail.com</email>
  </author>
  <url>http://github.com/red56/the-connected-website/commit/6f979980dd64c9c81f36563186e244d3f6ea4d1b</url>
  <id>6f979980dd64c9c81f36563186e244d3f6ea4d1b</id>
  <committed-date>2009-02-19T18:33:13-08:00</committed-date>
  <authored-date>2009-02-19T18:33:13-08:00</authored-date>
  <message>put daemon logs in log</message>
  <tree>7cf45ec3cc37f992d3030d344ea8a9e95b2a8335</tree>
  <committer>
    <name>Michael Hale</name>
    <email>mikehale@gmail.com</email>
  </committer>
</commit>
