zombie_passenger_killer 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Readme.md +2 -0
- data/bin/zombie_passenger_killer +4 -1
- data/lib/zombie_passenger_killer/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -27,6 +27,7 @@ Usage
|
|
27
27
|
-g, --grace [SECONDS] Wait SECONDS before hard-killing (-9) a process (default: 5)
|
28
28
|
-i, --interval [SECONDS] Check every SECONDS (default: 10)
|
29
29
|
-p, --pattern [PATTERN] Find processes with this pattern (default: ' Rack: ')
|
30
|
+
-1, --once Check once and exit
|
30
31
|
-h, --help Show this
|
31
32
|
-v, --version Show Version
|
32
33
|
-t, --time Show time in output
|
@@ -59,6 +60,7 @@ Author
|
|
59
60
|
###Contributors
|
60
61
|
- [Roman Heinrich](https://github.com/mindreframer)
|
61
62
|
- [Kevin Mullin](https://github.com/kmullin)
|
63
|
+
- [Valery Vishnyakov](https://github.com/balepc)
|
62
64
|
|
63
65
|
[Michael Grosser](http://grosser.it)<br/>
|
64
66
|
michael@grosser.it<br/>
|
data/bin/zombie_passenger_killer
CHANGED
@@ -21,6 +21,7 @@ BANNER
|
|
21
21
|
opts.on("-g", "--grace [SECONDS]", Integer, "Wait SECONDS before hard-killing (-9) a process (default: 5)") {|i| options[:grace]=i }
|
22
22
|
opts.on("-i", "--interval [SECONDS]", Integer, "Check every SECONDS (default: 10)") {|i| options[:interval]=i }
|
23
23
|
opts.on("-p", "--pattern [PATTERN]", String, "Find processes with this pattern (default: ' Rack: ')") {|i| options[:pattern]=i }
|
24
|
+
opts.on("-1", "--once", "Check once and exit") { options[:once]=true }
|
24
25
|
opts.on("-h", "--help","Show this") { puts opts; exit }
|
25
26
|
opts.on("-v", "--version","Show Version"){ puts version; exit }
|
26
27
|
opts.on("-t", "--timing","Show timing on output") { options[:show_times]=true }
|
@@ -30,4 +31,6 @@ $stdout.sync = true
|
|
30
31
|
puts "PID: #{$$} Version: #{version} Started at #{Time.now}"
|
31
32
|
|
32
33
|
$0 = File.basename(__FILE__) + '-' + version
|
33
|
-
|
34
|
+
|
35
|
+
method = (options[:once] ? :hunt_zombies : :lurk)
|
36
|
+
ZombiePassengerKiller::Reaper.new(options).send(method)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zombie_passenger_killer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-15 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description:
|