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
mpatch-1.0.2 lib/mpatch/process.rb
mpatch-1.0.1 lib/mpatch/process.rb
mpatch-1.0.0 lib/mpatch/process.rb
procemon-0.8.1 lib/procemon/mpatch/process.rb
procemon-0.8.0 lib/procemon/mpatch/process.rb
procemon-0.7.0 lib/procemon/mpatch/process.rb
procemon-0.6.3 lib/procemon/mpatch/process.rb
procemon-0.6.2 lib/procemon/mpatch/process.rb
procemon-0.6.1 lib/procemon/mpatch/process.rb
procemon-0.5.0 lib/procemon/mpatch/process.rb
procemon-0.4.5 lib/procemon/mpatch/process.rb
procemon-0.4.4 lib/procemon/mpatch/process.rb
procemon-0.4.3 lib/procemon/mpatch/process.rb
procemon-0.4.2 lib/procemon/mpatch/process.rb
procemon-0.4.1 lib/procemon/mpatch/process.rb
procemon-0.4.0 lib/procemon/mpatch/process.rb
procemon-0.3.4 lib/procemon/mpatch/process.rb
procemon-0.3.3 lib/procemon/mpatch/process.rb
procemon-0.3.2 lib/procemon/mpatch/process.rb
procemon-0.3.1 lib/procemon/mpatch/process.rb