red_unicorn 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == v1.1.1
2
+ * Bug fix for custom pid files
3
+
1
4
  == v1.1.0
2
5
  * Provide configurable restart grace period (thanks {Darrin}[http://github.com/dje])
3
6
 
data/README.rdoc CHANGED
@@ -10,7 +10,7 @@ provide zero downtime restarts.
10
10
  RedUnicorn::Unicorn: Unicorn process interactions
11
11
  Usage: red_unicorn [opts] (prolicide | status | slaughter | start | restart | reload | stop | birth)
12
12
  -h, --help Show this help screen
13
- -p, --pid /path/to/file.pid Specify path to PID file (default: /var/run/unicorn/unicorn.pid)
13
+ -p, --pid-file /path/to/file.pid Specify path to PID file (default: /var/run/unicorn/unicorn.pid)
14
14
  -x, --unicorn-exec /path/to/unicorn Specify path to unicorn executable (default: /var/www/shared/bundle/bin/unicorn_rails)
15
15
  -c, --unicorn-config /path/to/config Specify path to unicorn configuration file (default: /etc/unicorn/app.rb)
16
16
  -t, --timeout 30 Specify timeout for running actions
data/bin/red_unicorn CHANGED
@@ -47,7 +47,7 @@ def print_help
47
47
  puts 'RedUnicorn::Unicorn: Unicorn process interactions'
48
48
  puts "Usage: red_unicorn [opts] (#{ALLOWED_ACTIONS.keys.join(' | ')})"
49
49
  puts ' -h, --help Show this help screen'
50
- puts ' -p, --pid /path/to/file.pid Specify path to PID file (default: /var/run/unicorn/unicorn.pid)'
50
+ puts ' -p, --pid-file /path/to/file.pid Specify path to PID file (default: /var/run/unicorn/unicorn.pid)'
51
51
  puts ' -x, --unicorn-exec /path/to/unicorn Specify path to unicorn executable (default: /var/www/shared/bundle/bin/unicorn_rails)'
52
52
  puts ' -c, --unicorn-config /path/to/config Specify path to unicorn configuration file (default: /etc/unicorn/app.rb)'
53
53
  puts ' -t, --timeout 30 Specify timeout for running actions'
@@ -71,7 +71,7 @@ opts.each do |opt,arg|
71
71
  unicorn_hash[:unicorn_config] = arg.to_s
72
72
  when '--unicorn-exec'
73
73
  unicorn_hash[:exec_path] = arg.to_s
74
- when '--pid'
74
+ when '--pid-file'
75
75
  unicorn_hash[:pid] = arg.to_s
76
76
  when '--env'
77
77
  unicorn_hash[:env] = arg.to_s
@@ -137,8 +137,10 @@ module RedUnicorn
137
137
  begin
138
138
  Process.kill(0, custom_pid || pid)
139
139
  true
140
- rescue
140
+ rescue Errno::EPERM, Errno::ESRCH
141
141
  false
142
+ rescue => e
143
+ raise Unicornerror.new "#{e.class.name}: #{e}"
142
144
  end
143
145
  end
144
146
 
@@ -13,5 +13,5 @@ module RedUnicorn
13
13
  end
14
14
  end
15
15
 
16
- VERSION = Version.new('1.1.0')
16
+ VERSION = Version.new('1.1.1')
17
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red_unicorn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-15 00:00:00 -07:00
18
+ date: 2011-06-29 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency