servolux 0.6.1 → 0.6.2
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/History.txt +6 -0
- data/lib/servolux.rb +1 -1
- data/lib/servolux/server.rb +7 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/servolux.rb
CHANGED
data/lib/servolux/server.rb
CHANGED
@@ -174,7 +174,12 @@ class Servolux::Server
|
|
174
174
|
# shutdown the server, starting and joining the server thread. The PID
|
175
175
|
# file is deleted when this method returns.
|
176
176
|
#
|
177
|
-
|
177
|
+
# If +true+ is passed to this method, then it will not return until the
|
178
|
+
# +wait_for_shutdown+ method has been called from another thread. This
|
179
|
+
# flag is used to ensure that the server has shutdown completely when
|
180
|
+
# shutdown by a signal.
|
181
|
+
#
|
182
|
+
def startup( wait = false )
|
178
183
|
return self if running?
|
179
184
|
@mutex.synchronize {
|
180
185
|
@shutdown = ConditionVariable.new
|
@@ -185,6 +190,7 @@ class Servolux::Server
|
|
185
190
|
trap_signals
|
186
191
|
start
|
187
192
|
join
|
193
|
+
wait_for_shutdown if wait
|
188
194
|
ensure
|
189
195
|
delete_pid_file
|
190
196
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servolux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-16 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|