bluepill 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ begin
14
14
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
15
  gem.add_dependency("daemons", ">= 1.0.9")
16
16
  gem.add_dependency("pluginaweek-state_machine", ">= 0.8.0")
17
- gem.add_dependency("activesupport", ">= 2.0.2")
17
+ gem.add_dependency("activesupport", ">= 2.3.4")
18
18
  end
19
19
  rescue LoadError
20
20
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
data/TODO CHANGED
@@ -3,4 +3,11 @@
3
3
  * Proper implementation of the cpu and mem watches. Possibly not forking to use ps ax?
4
4
  * Better error output than just vanilla exception traces
5
5
  * Better output for cli commands than just "ok"
6
- * munin support?
6
+ * munin support?
7
+
8
+
9
+ Issues encountered in the wild
10
+ ------------------------------
11
+
12
+ 1. There were weird dependencies on xml-simple and builder gems when you try to use the bluepill cli.
13
+ 2s. I think flap detection trigger has a bug in it. When couple bg workers quit right after bluepill attempted to start them, they went in to the unmonitored state but did not come back from it. Not sure if flap detection even got triggered cuz I did not see a flapping detected message in the log.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -38,10 +38,11 @@ when "load"
38
38
  eval(File.read(file))
39
39
 
40
40
  when "log"
41
- pattern = ARGV.shift
41
+ orig_pattern = pattern = ARGV.shift
42
42
  pattern = controller.send_cmd(options[:application], :grep_pattern, pattern)
43
43
 
44
44
  cmd = "tail -n 100 -f #{options[:log_file]} | grep -E '#{pattern}'"
45
+ cmd = "echo 'Tailing log for #{orig_pattern}...'; #{cmd}"
45
46
  Kernel.exec(cmd)
46
47
 
47
48
  when *ALLOWED_COMMANDS
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bluepill}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Arya Asemanfar", "Gary Tsang", "Rohith Ravi"]
12
- s.date = %q{2009-10-12}
12
+ s.date = %q{2009-10-13}
13
13
  s.default_executable = %q{bluepill}
14
14
  s.description = %q{Bluepill keeps your daemons up while taking up as little resources as possible. After all you probably want the resources of your server to be used by whatever daemons you are running rather than the thing that's supposed to make sure they are brought back up, should they die or misbehave.}
15
15
  s.email = %q{entombedvirus@gmail.com}
@@ -55,11 +55,10 @@ Gem::Specification.new do |s|
55
55
  "spec/process_spec.rb",
56
56
  "spec/spec_helper.rb"
57
57
  ]
58
- s.has_rdoc = true
59
58
  s.homepage = %q{http://github.com/arya/bluepill}
60
59
  s.rdoc_options = ["--charset=UTF-8"]
61
60
  s.require_paths = ["lib"]
62
- s.rubygems_version = %q{1.3.2}
61
+ s.rubygems_version = %q{1.3.5}
63
62
  s.summary = %q{A process monitor written in Ruby with stability and minimalism in mind.}
64
63
  s.test_files = [
65
64
  "spec/blue-pill_spec.rb",
@@ -75,17 +74,17 @@ Gem::Specification.new do |s|
75
74
  s.add_development_dependency(%q<rspec>, [">= 0"])
76
75
  s.add_runtime_dependency(%q<daemons>, [">= 1.0.9"])
77
76
  s.add_runtime_dependency(%q<pluginaweek-state_machine>, [">= 0.8.0"])
78
- s.add_runtime_dependency(%q<activesupport>, [">= 2.0.2"])
77
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.3.4"])
79
78
  else
80
79
  s.add_dependency(%q<rspec>, [">= 0"])
81
80
  s.add_dependency(%q<daemons>, [">= 1.0.9"])
82
81
  s.add_dependency(%q<pluginaweek-state_machine>, [">= 0.8.0"])
83
- s.add_dependency(%q<activesupport>, [">= 2.0.2"])
82
+ s.add_dependency(%q<activesupport>, [">= 2.3.4"])
84
83
  end
85
84
  else
86
85
  s.add_dependency(%q<rspec>, [">= 0"])
87
86
  s.add_dependency(%q<daemons>, [">= 1.0.9"])
88
87
  s.add_dependency(%q<pluginaweek-state_machine>, [">= 0.8.0"])
89
- s.add_dependency(%q<activesupport>, [">= 2.0.2"])
88
+ s.add_dependency(%q<activesupport>, [">= 2.3.4"])
90
89
  end
91
90
  end
@@ -5,6 +5,8 @@ require 'syslog'
5
5
 
6
6
  require 'active_support/inflector'
7
7
  require 'active_support/core_ext/hash'
8
+ require 'active_support/core_ext/numeric'
9
+ require 'active_support/duration'
8
10
 
9
11
  require 'bluepill/application'
10
12
  require 'bluepill/controller'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arya Asemanfar
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-10-12 00:00:00 -07:00
14
+ date: 2009-10-13 00:00:00 -07:00
15
15
  default_executable: bluepill
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -52,7 +52,7 @@ dependencies:
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 2.0.2
55
+ version: 2.3.4
56
56
  version:
57
57
  description: Bluepill keeps your daemons up while taking up as little resources as possible. After all you probably want the resources of your server to be used by whatever daemons you are running rather than the thing that's supposed to make sure they are brought back up, should they die or misbehave.
58
58
  email: entombedvirus@gmail.com
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements: []
124
124
 
125
125
  rubyforge_project:
126
- rubygems_version: 1.3.2
126
+ rubygems_version: 1.3.5
127
127
  signing_key:
128
128
  specification_version: 3
129
129
  summary: A process monitor written in Ruby with stability and minimalism in mind.