bluepill 0.0.52 → 0.0.53

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/README.md CHANGED
@@ -5,14 +5,14 @@ Bluepill is a simple process monitoring tool written in Ruby.
5
5
  It's hosted on [rubygems.org][rubygems].
6
6
 
7
7
  sudo gem install bluepill
8
-
8
+
9
9
  In order to take advantage of logging with syslog, you also need to setup your syslog to log the local6 facility. Edit the appropriate config file for your syslogger (/etc/syslog.conf for syslog) and add a line for local6:
10
10
 
11
11
  local6.* /var/log/bluepill.log
12
12
 
13
13
  You'll also want to add _/var/log/bluepill.log_ to _/etc/logrotate.d/syslog_ so that it gets rotated.
14
14
 
15
- Lastly, create the _/var/bluepill_ directory for bluepill to store its pid and sock files.
15
+ Lastly, create the _/var/run/bluepill_ directory for bluepill to store its pid and sock files.
16
16
 
17
17
  ## Usage
18
18
  ### Config
@@ -303,4 +303,3 @@ Mailing List: [http://groups.google.com/group/bluepill-rb](http://groups.google.
303
303
 
304
304
 
305
305
  [rubygems]: http://rubygems.org/gems/bluepill
306
-
data/lib/bluepill.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'rubygems'
3
3
 
4
+ require 'bundler/setup' if ENV['BUNDLE_GEMFILE'] && File.exists?(ENV['BUNDLE_GEMFILE'])
5
+
4
6
  require 'thread'
5
7
  require 'monitor'
6
8
  require 'syslog'
@@ -91,6 +91,7 @@ module Bluepill
91
91
  loop do
92
92
  begin
93
93
  client = self.socket.accept
94
+ client.close_on_exec = true
94
95
  command, *args = client.readline.strip.split(":")
95
96
  response = begin
96
97
  mutex { self.send(command, *args) }
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Bluepill
3
- VERSION = "0.0.52".freeze
3
+ VERSION = "0.0.53".freeze
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepill
3
3
  version: !ruby/object:Gem::Version
4
- hash: 119
4
+ hash: 117
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 52
10
- version: 0.0.52
9
+ - 53
10
+ version: 0.0.53
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arya Asemanfar
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-12-13 00:00:00 +04:00
20
+ date: 2012-02-03 00:00:00 +04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency