smartguard 0.3 → 0.3.1
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/bin/smartguard
CHANGED
@@ -65,6 +65,10 @@ def start_application(application, opts, &block)
|
|
65
65
|
end
|
66
66
|
rescue => e
|
67
67
|
Smartguard::Logging.logger.error "Exception catched during service startup: #{e}"
|
68
|
+
e.backtrace.each do |line|
|
69
|
+
Smartguard::Logging.logger.error line
|
70
|
+
end
|
71
|
+
|
68
72
|
exit 1
|
69
73
|
end
|
70
74
|
|
@@ -118,7 +118,7 @@ module Smartguard
|
|
118
118
|
|
119
119
|
if !service.active?
|
120
120
|
if !service.start && block_given?
|
121
|
-
Logging.logger.debug "Startup of #{
|
121
|
+
Logging.logger.debug "Startup of #{key} failed: running safety block"
|
122
122
|
yield
|
123
123
|
return false
|
124
124
|
end
|
@@ -14,7 +14,7 @@ module Smartguard
|
|
14
14
|
end
|
15
15
|
|
16
16
|
Logging.logger.info "Starting smartware"
|
17
|
-
if !run(@path, {}, "bundle", "exec", "smartware", "--config
|
17
|
+
if !run(@path, {}, "bundle", "exec", "smartware", "--config=#{config_file}", *opts)
|
18
18
|
return false
|
19
19
|
end
|
20
20
|
|
data/lib/smartguard/version.rb
CHANGED