jobby 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +9 -3
- data/bin/jobby +1 -1
- data/lib/server.rb +2 -2
- 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.
|
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
|
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
|
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
data/lib/server.rb
CHANGED
@@ -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
|
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(
|
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.
|
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-
|
12
|
+
date: 2008-11-21 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|