scout 5.5.5 → 5.5.6.pre

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 5.5.6
2
+
3
+ * PID file rescue fix
4
+
1
5
  == 5.5.5
2
6
 
3
7
  * Fix for blank PID file
@@ -236,26 +236,28 @@ module Scout
236
236
  rescue
237
237
  running = true
238
238
  pid = File.read(pid_file).strip.to_i rescue "unknown"
239
- if pid.zero?
240
- running = false
241
- else
242
- begin
243
- Process.kill(0, pid)
244
- if stat = File.stat(pid_file)
245
- if mtime = stat.mtime
246
- if Time.now - mtime > 25 * 60 # assume process is hung after 25m
247
- log.info "Trying to KILL an old process..." if log
248
- Process.kill("KILL", pid)
249
- running = false
239
+ if pid.is_a?(Fixnum)
240
+ if pid.zero?
241
+ running = false
242
+ else
243
+ begin
244
+ Process.kill(0, pid)
245
+ if stat = File.stat(pid_file)
246
+ if mtime = stat.mtime
247
+ if Time.now - mtime > 25 * 60 # assume process is hung after 25m
248
+ log.info "Trying to KILL an old process..." if log
249
+ Process.kill("KILL", pid)
250
+ running = false
251
+ end
250
252
  end
251
253
  end
254
+ rescue Errno::ESRCH
255
+ running = false
256
+ rescue
257
+ # do nothing, we didn't have permission to check the running process
252
258
  end
253
- rescue Errno::ESRCH
254
- running = false
255
- rescue
256
- # do nothing, we didn't have permission to check the running process
257
- end
258
- end # pid.zero?
259
+ end # pid.zero?
260
+ end # pid.is_a?(Fixnum)
259
261
  if running
260
262
  if pid == "unknown"
261
263
  log.warn "Could not create or read PID file. " +
@@ -1,3 +1,3 @@
1
1
  module Scout
2
- VERSION = "5.5.5"
2
+ VERSION = "5.5.6.pre"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.5
5
- prerelease:
4
+ version: 5.5.6.pre
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andre Lewis
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-07-03 00:00:00.000000000 Z
14
+ date: 2012-08-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: elif
18
- requirement: &2157262900 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,12 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2157262900
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
27
32
  description: ! 'Scout makes monitoring and reporting on your web applications as flexible
28
33
  and simple as possible.
29
34
 
@@ -232,12 +237,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
237
  required_rubygems_version: !ruby/object:Gem::Requirement
233
238
  none: false
234
239
  requirements:
235
- - - ! '>='
240
+ - - ! '>'
236
241
  - !ruby/object:Gem::Version
237
- version: '0'
242
+ version: 1.3.1
238
243
  requirements: []
239
244
  rubyforge_project: scout
240
- rubygems_version: 1.8.10
245
+ rubygems_version: 1.8.24
241
246
  signing_key:
242
247
  specification_version: 3
243
248
  summary: Web-based monitoring, reporting, and alerting for your servers, clusters,