--- mongrel-1.0.1/examples/builder.rb Thu Jan 25 23:28:20 2007
+++ ./builder.rb        Thu Mar 29 23:24:48 2007
@@ -10,9 +10,9 @@
   end
 end
 
-config = Mongrel::Configurator.new :host => "127.0.0.1" do
+config = Mongrel::Configurator.new :host => "127.0.0.1", :pid_file => "mongrel.pid" do
   load_plugins :includes => ["mongrel"], :excludes => ["rails"]
-  daemonize :cwd => Dir.pwd, :log_file => "mongrel.log", :pid_file => "mongrel.pid"
+  daemonize :cwd => Dir.pwd, :log_file => "mongrel.log"
   
   listener :port => 3000 do
     uri "/app", :handler => plugin("/handlers/testplugin", :test => "that")
@@ -23,5 +23,5 @@
   trap("INT") { stop }
   run
 end
-
+config.write_pid_file
 config.join
