Changeset 303
- Timestamp:
- 02/02/08 12:34:59 (8 months ago)
- Files:
-
- trunk/plugin/acts_as_ferret/lib/unix_daemon.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugin/acts_as_ferret/lib/unix_daemon.rb
r258 r303 50 50 # create the PID file and install an at_exit handler 51 51 def write_pid_file 52 raise "ferret_server may already be running, a pid file exists: #{@cfg.pid_file}" if read_pid_file 52 53 open(@cfg.pid_file, "w") {|f| f << Process.pid << "\n"} 53 54 at_exit { File.unlink(@cfg.pid_file) if read_pid_file == Process.pid }
