<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -47,14 +47,14 @@ class Server
   end
   
   def start
+    pidfile.ensure_empty! &quot;ERROR: It looks like I'm already running.  Not starting.&quot;
+    
+    logger.info &quot;Starting LDAP server&quot;
+    daemonize(logger)
+
     require File.join(@config['rails_dir'], 'config', 'environment.rb')
     self.logger.info(&quot;Cannot load Rails.  Exiting.&quot;) and exit 5 unless defined? RAILS_ROOT
     @config.symbolize_keys!
-
-    pidfile.ensure_empty! &quot;ERROR: It looks like I'm already running.  Not starting.&quot;
-    
-    logger.info &quot;Starting LDAP server on port #{@config[:port]}.&quot;
-    daemonize(logger)    
     
     logger.info &quot;Became daemon with process id: #{$$}&quot;
     begin
@@ -100,6 +100,8 @@ class Server
     	:operation_args		=&gt; [@config, klass, logger]
     )
     s.run_tcpserver
+    logger.info &quot;Listening on port #{@config[:port]}.&quot;
+    
     s.join
   end
 </diff>
      <filename>lib/server.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e61e532c1d3fb9b841edcc94e5e7824f1f9bbbdf</id>
    </parent>
  </parents>
  <author>
    <name>tsaleh</name>
    <email>tsaleh@bbed3248-5b21-0410-9248-c913b1c69bca</email>
  </author>
  <url>http://github.com/thoughtbot/ldap-activerecord-gateway/commit/705225d3bf4e75fc7c6043fe7ddbbb23bff5fd4c</url>
  <id>705225d3bf4e75fc7c6043fe7ddbbb23bff5fd4c</id>
  <committed-date>2007-05-16T08:12:58-07:00</committed-date>
  <authored-date>2007-05-16T08:12:58-07:00</authored-date>
  <message>debugging

git-svn-id: https://svn.thoughtbot.com/ldap-activerecord-gateway@23 bbed3248-5b21-0410-9248-c913b1c69bca</message>
  <tree>ad3da9c08027307eef1f5cef540be6464f1ed14b</tree>
  <committer>
    <name>tsaleh</name>
    <email>tsaleh@bbed3248-5b21-0410-9248-c913b1c69bca</email>
  </committer>
</commit>
