foreman_god 0.0.4 → 0.0.5
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/lib/foreman_god/god_config.rb +1 -8
- data/lib/foreman_god/version.rb +1 -1
- metadata +2 -2
|
@@ -142,20 +142,13 @@ module ForemanGod
|
|
|
142
142
|
|
|
143
143
|
w.start = wrap_command(process.expanded_command(env))
|
|
144
144
|
|
|
145
|
+
# Only set the uid if the user is different from the current user
|
|
145
146
|
if user_name && (Etc.getlogin != user_name)
|
|
146
|
-
# Only set the uid if the user is different from the current user
|
|
147
147
|
w.uid = user_name
|
|
148
148
|
w.gid = group_name
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
# w.gid = ?
|
|
152
|
-
|
|
153
151
|
w.transition(:up, :restart) do |on|
|
|
154
|
-
on.condition(:memory_usage) do |c|
|
|
155
|
-
c.above = 350.megabytes
|
|
156
|
-
c.times = 2
|
|
157
|
-
end
|
|
158
|
-
|
|
159
152
|
on.condition(:foreman_restart_file_touched) do |c|
|
|
160
153
|
c.interval = 5.seconds
|
|
161
154
|
# Should we make this path configurable?
|
data/lib/foreman_god/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_god
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-11-
|
|
12
|
+
date: 2012-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: foreman
|