godhead 0.0.7 → 0.0.8
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/VERSION +1 -1
- data/lib/godhead/god_recipe.rb +6 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/lib/godhead/god_recipe.rb
CHANGED
@@ -72,6 +72,7 @@ module Godhead
|
|
72
72
|
watcher.gid = options[:gid] if options[:gid]
|
73
73
|
watcher.env = options[:env] if options[:env]
|
74
74
|
watcher.log = process_log_file
|
75
|
+
watcher.err_log = process_err_log_file
|
75
76
|
watcher.interval = options[:default_interval]
|
76
77
|
watcher.start_grace = options[:start_grace_time]
|
77
78
|
watcher.restart_grace = options[:restart_grace_time] || (options[:start_grace_time] + 2.seconds)
|
@@ -222,6 +223,11 @@ module Godhead
|
|
222
223
|
File.join(options[:process_log_dir], handle+".log")
|
223
224
|
end
|
224
225
|
|
226
|
+
# Default error log filename.
|
227
|
+
def process_err_log_file
|
228
|
+
process_log_file
|
229
|
+
end
|
230
|
+
|
225
231
|
# create any directories required by the process
|
226
232
|
def mkdirs!
|
227
233
|
require 'fileutils'
|