daemons 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/Releases +8 -0
- data/lib/daemons.rb +1 -1
- data/lib/daemons/pid.rb +2 -2
- metadata +2 -2
data/README
CHANGED
data/Releases
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
= Daemons Release History
|
2
2
|
|
3
|
+
== Release 1.0.1: August 30, 2006
|
4
|
+
|
5
|
+
* Fixed a regex for parsing the 'ps ax' system call. (thanks to Garance Alistair Drosehn)
|
6
|
+
|
7
|
+
== Release 1.0.0: August 29, 2006
|
8
|
+
|
9
|
+
* Fix the parsing of the 'ps ax' system call. (thanks to Garance Alistair Drosehn)
|
10
|
+
|
3
11
|
== Release 0.4.4: February 14, 2006
|
4
12
|
|
5
13
|
* Several fixes that allow us to use the Daemons::Controller
|
data/lib/daemons.rb
CHANGED
data/lib/daemons/pid.rb
CHANGED
@@ -4,10 +4,10 @@ module Daemons
|
|
4
4
|
class Pid
|
5
5
|
|
6
6
|
def Pid.running?(pid, additional = nil)
|
7
|
-
match_pid = Regexp.new("
|
7
|
+
match_pid = Regexp.new("^\\s*#{pid}\\s")
|
8
8
|
got_match = false
|
9
9
|
|
10
|
-
ps_all = IO.popen("ps ax")
|
10
|
+
ps_all = IO.popen("ps -ax")
|
11
11
|
ps_all.each { |psline|
|
12
12
|
next unless psline =~ match_pid
|
13
13
|
got_match = true
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: daemons
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-08-
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2006-08-30 00:00:00 +02:00
|
8
8
|
summary: A toolkit to create and control daemons in different ways
|
9
9
|
require_paths:
|
10
10
|
- lib
|