jobby 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +9 -3
  2. data/bin/jobby +1 -1
  3. data/lib/server.rb +2 -2
  4. metadata +2 -2
data/README CHANGED
@@ -69,14 +69,20 @@ and used the first time. I'll try to explain why below.
69
69
 
70
70
  == Log rotation
71
71
 
72
- Issue a HUP signal to tell a Jobby process that the log file has been rotated. You need to do this for all Jobby processes.
72
+ Issue a HUP signal to tell a Jobby process that the log file has been rotated.
73
+ You need to do this for all Jobby processes.
73
74
 
74
75
 
75
76
  == Stopping Jobby
76
77
 
77
- Sending a USR1 signal to the Jobby daemon process (jobbyd) will gracefully shutdown Jobby. The daemon process will stop accepting any more connections and close the socket. It will honour anything in the queue and wait until all the children have exited before exiting itself. In the meantime, you can start another Jobby daemon on the old socket.
78
+ Sending a USR1 signal to the Jobby daemon process (jobbyd) will gracefully
79
+ shutdown Jobby. The daemon process will stop accepting any more connections and
80
+ close the socket. It will honour anything in the queue and wait until all the
81
+ children have exited before exiting itself. In the meantime, you can start
82
+ another Jobby daemon on the old socket.
78
83
 
79
- Sending a TERM signal to the Jobby daemon process (jobbyd) will terminate the related Jobby processes immediately (kill -9 the children, then exit the daemon).
84
+ Sending a TERM signal to the Jobby daemon process (jobbyd) will terminate the
85
+ related Jobby processes (kill -15 the children, then exit the daemon).
80
86
 
81
87
 
82
88
  == Running multiple Jobby daemons
data/bin/jobby CHANGED
@@ -38,7 +38,7 @@ OptionParser.new do |opts|
38
38
  end
39
39
 
40
40
  opts.on("--version", "Show version") do
41
- puts "0.3.2"
41
+ puts "0.3.3"
42
42
  exit
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module Jobby
38
38
  # will continue to fork if there are any requests in the queue.
39
39
  # It will then wait for the children to exit before terminating.
40
40
  #
41
- # SIGTERM will stop the server forking any more children, kill 9 any
41
+ # SIGTERM will stop the server forking any more children, kill 15 any
42
42
  # existing children and terminate it.
43
43
  #
44
44
  # ==Log rotation
@@ -81,7 +81,7 @@ module Jobby
81
81
  loop do
82
82
  client = @socket.accept
83
83
  input = ""
84
- while bytes = client.read(128)
84
+ while bytes = client.read(1)
85
85
  input += bytes
86
86
  end
87
87
  client.close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Somerville
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-14 00:00:00 +00:00
12
+ date: 2008-11-21 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15