Sha256: ec09579240789ef50e24bb7d9df87416f026b06bee80be4bd7a22829fe4367b1

Contents?: true

Size: 338 Bytes

Versions: 29

Compression:

Stored size: 338 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

29 entries across 29 versions & 2 rubygems

Version Path
procemon-0.2.0 lib/procemon/mpatch/process.rb
procemon-0.1.5 lib/procemon/mpatch/process.rb
procemon-0.1.4 lib/procemon/mpatch/process.rb
procemon-0.1.3 lib/procemon/mpatch/process.rb
procemon-0.1.1 lib/procemon/mpatch/process.rb
procemon-0.0.9 lib/procemon/mpatch/process.rb
procemon-0.0.8 lib/procemon/mpatch/process.rb
procemon-0.0.7 lib/procemon/mpatch/process.rb
procemon-0.0.6 lib/procemon/mpatch/process.rb