forever 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/forever/base.rb +1 -1
- data/lib/forever/version.rb +1 -1
- metadata +2 -2
data/lib/forever/base.rb
CHANGED
@@ -21,7 +21,7 @@ module Forever
|
|
21
21
|
|
22
22
|
%w(INT TERM KILL).each { |signal| trap(signal) { stop! } }
|
23
23
|
|
24
|
-
File.open(pid, "w") { |f| f.write(Process.pid.to_s) } if
|
24
|
+
File.open(pid, "w") { |f| f.write(Process.pid.to_s) } if pid
|
25
25
|
|
26
26
|
stream = log ? File.new(log, "w") : File.open('/dev/null', 'w')
|
27
27
|
stream.sync = true
|
data/lib/forever/version.rb
CHANGED