itamae-plugin-recipe-god 0.2.6 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 716b3821246e52badde793a0eadc31195cb8b7a9d288dea5bae3fbcdc51ec703
4
- data.tar.gz: e72017bc1a11fdb4cca9a0ec4ddad24c38eb906a0f2b97cf749a4c1153428041
3
+ metadata.gz: cba703e117bbca5fe661f96dcffaaddd9818af1ee843876f617d8e39123bd2f0
4
+ data.tar.gz: '0319d718155e1d81e6f398c4e5173feb8b384e60a7341d47764a94f607ded931'
5
5
  SHA512:
6
- metadata.gz: a464da26f5438f3b7567d96c2dc743a7e14ccbbdb098fbb9cadc0308b6481f78eca19d79159f544e285941f7b147a5eed7165fe205dfc7eee2f8e81ef07b6399
7
- data.tar.gz: 7cb047ad676d1689910be2594bbf489e020e28dd3f2f35d857850ea2693961572a1886788fc8b41d20799ac28b1f69ed5068fa04dd8116111bfa5c72339734c9
6
+ metadata.gz: 9916973aefc362011a01f3fcace1bdf5f307f01428832074251d100a7203664ec7ef409760967c3c94e7f87696e3b84a3d716262f4fb98d342eaf8f82582c967
7
+ data.tar.gz: cb745de10e7647309100a98da54ffbdc37a8654a1ba5c627429edfa488786e8b59a6cd6bf3848c9ccdb97e03c6af26fa42fdff10f2603b898aa597a0a1d49ae1
@@ -40,9 +40,10 @@ template '/etc/god/master.conf' do
40
40
  mode '644'
41
41
  end
42
42
 
43
- ruby_bin_dir = node.languages.ruby.bin_dir rescue nil
43
+ god_bin = ENV['GOD_BIN'] || `sudo which god`.chomp
44
+
44
45
  service_variables = {
45
- god_bin: (ruby_bin_dir ? "#{ruby_bin_dir}/god" : 'god'),
46
+ god_bin: god_bin,
46
47
  pid: '/var/run/god.pid',
47
48
  config: '/etc/god/master.conf',
48
49
  log: '/var/log/god.log',
@@ -8,7 +8,7 @@ Environment="PID_FILE=<%= @pid %>"
8
8
  Environment="LOG_FILE=<%= @log %>"
9
9
  Environment="LOG_LEVEL=<%= @log_level %>"
10
10
  EnvironmentFile=-/etc/sysconfig/god
11
- PIDFile=$PID_FILE
11
+ PIDFile=<%= @pid %>
12
12
  ExecStart=<%= @god_bin %> -c $CONF_FILE -P $PID_FILE -l $LOG_FILE --log-level $LOG_LEVEL
13
13
  ExecStop=<%= @god_bin %> quit
14
14
 
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module God
5
- VERSION = '0.2.6'
5
+ VERSION = '0.2.8'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.4.18
119
+ rubygems_version: 3.3.26
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: itamae recipe for god process monitoring framework