Sha256: 79fa4f2efd3cda8a9aee27915fe9625b4cf1a9d6709a1d0b415a6c2d218c6dea

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

module Process

  def self.daemonize
    File.create Application.pid,'a+'
    File.create Application.log,'a+'
    File.create Application.daemon_stderr,'a+'
    Daemon.start fork,
                 Application.pid,
                 Application.log,
                 Application.daemon_stderr
  end
  def self.stop
    Daemon.stop
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
procemon-1.2.0 lib/procemon/process.rb
procemon-1.1.1 lib/procemon/process.rb
procemon-1.0.4 lib/procemon/process.rb