static public Method

Spawner.record_pid(name = "

There's no documentation for this item.

Source Code

# File commands/process/spawner.rb, line 18
def self.record_pid(name = "#{OPTIONS[:process]}.spawner", id = Process.pid)
  FileUtils.mkdir_p(OPTIONS[:pids])
  File.open(File.expand_path(OPTIONS[:pids] + "/#{name}.pid"), "w+") { |f| f.write(id) }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.