daemons 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/Rakefile +4 -0
- data/Releases +5 -1
- data/lib/daemons.rb +2 -2
- metadata +1 -1
data/README
CHANGED
data/Rakefile
CHANGED
@@ -60,6 +60,10 @@ Rake::TestTask.new(:test) do |t|
|
|
60
60
|
t.test_files = FileList['test/tc_*.rb']
|
61
61
|
end
|
62
62
|
|
63
|
+
task :upload do
|
64
|
+
sh "scp -r html/* uehli@rubyforge.org:/var/www/gforge-projects/daemons"
|
65
|
+
end
|
66
|
+
|
63
67
|
|
64
68
|
desc "Create the RDOC html files"
|
65
69
|
rd = Rake::RDocTask.new("rdoc") { |rdoc|
|
data/Releases
CHANGED
data/lib/daemons.rb
CHANGED
@@ -17,7 +17,7 @@ require 'daemons/exceptions'
|
|
17
17
|
#
|
18
18
|
module Daemons
|
19
19
|
|
20
|
-
VERSION = "0.2.
|
20
|
+
VERSION = "0.2.1"
|
21
21
|
|
22
22
|
require 'daemons/daemonize'
|
23
23
|
|
@@ -184,7 +184,7 @@ module Daemons
|
|
184
184
|
#
|
185
185
|
def running?
|
186
186
|
if @pid_file.exists?
|
187
|
-
return
|
187
|
+
return /#{@pid_file.read} / =~ `ps ax`
|
188
188
|
end
|
189
189
|
|
190
190
|
return false
|