Class: Daemons::Pid

Class | Daemons::Pid
In: | lib/daemons/pid.rb
Parent: | Object

### Methods

cleanup dir exist? new pid pid= running?

### Public Class methods

dir(dir_mode, dir, script)

Returns the directory that should be used to write the pid file to depending on the given mode.

Some modes may require an additionaly hint, others may determine the directory automatically.

If no valid directory is found, returns nil.

new()

Initialization method

running?(pid)

### Public Instance methods

cleanup()

Cleanup method

exist?()

Exists? method

pid()

Get method

pid=(p)

Set method

[Validate]