Permalink
Browse files

removed ext/daemons_monkey so that we have a predictable pidfile name

  • Loading branch information...
1 parent a3f15b6 commit 0a32fc481358e14d0d0c39e78f4a685aa085a6eb @tlowrimore tlowrimore committed Jun 25, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −1 lib/delayed/command.rb
  2. +0 −9 lib/delayed/ext/daemons_monkey.rb
View
@@ -1,6 +1,5 @@
require 'rubygems'
require 'daemons'
-require File.expand_path(File.join(File.dirname(__FILE__), 'ext', 'daemons_monkey'))
require 'optparse'
module Delayed
@@ -1,9 +0,0 @@
-module Daemons
- class PidFile
- def filename
- @random_index ||= rand(100_000)
- # the random number makes it so that the .pid files don't overlap in name.
- File.join(@dir, "#{@progname}_#{@random_index}_#{ @number or '' }.pid")
- end
- end
-end

0 comments on commit 0a32fc4

Please sign in to comment.