itamae-plugin-recipe-supervisor 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 62bfd5f0715f6f3a555c62b1cbe7389c7d5ac1a5
4
- data.tar.gz: bc15cd9a86f3d938a7a19bbf3b79fcc14000b7ee
3
+ metadata.gz: 8e780d15188b7cfe80908dcfba465899fe5598a1
4
+ data.tar.gz: 85174e95ad4d2123ef6bbaeb3df7fd53f846ebe8
5
5
  SHA512:
6
- metadata.gz: e7bd574beb4589b08a3fe024be567fa830783e5bde63a3c1f7cecd4f3ce2ebd22c07ad5e8bf9d028c0c37fe25f3ac06f6ad7acc264dda51c84a11cb0218e4abb
7
- data.tar.gz: 8eaab38266c944ed4363bc6990ef62c308f448aaead76bb59a97668439372841b552377cfcceadc7750505f734687e4cdf91c1e49c4976a94aa76bba6bf871f1
6
+ metadata.gz: dc55db583417bf4517d6febce301a61037eb465b427e8338620ed5df097456d13097144fa43029d5653db4b2607577eaa7fff7d2818585c0b53a5d36614cc67c
7
+ data.tar.gz: 437bb873a1f7b9d2feec124c651bd0f695e24f9bb1d07c3343ad1c5d8351fe53c519070af3fa5842ee33bfb8c487397556775bf8d1958dd0b14588ea3630aa5f
@@ -26,11 +26,13 @@ when /rhel-6\.(.*?)/
26
26
  mode '755'
27
27
  end
28
28
  when /rhel-7\.(.*?)/
29
+ pip_path = run_command('which pip').stdout
29
30
  template '/etc/systemd/system/supervisord.service' do
30
31
  user 'root'
31
32
  owner 'root'
32
33
  group 'root'
33
34
  mode '755'
35
+ variables dir_path: File.dirname(pip_path)
34
36
  end
35
37
 
36
38
  execute 'systemctl daemon-reload' do
@@ -4,9 +4,9 @@ Documentation=http://supervisord.org
4
4
  After=network.target
5
5
 
6
6
  [Service]
7
- ExecStart=/usr/local/bin/supervisord -n -c /etc/supervisord.conf
8
- ExecStop=/usr/local/bin/supervisorctl $OPTIONS shutdown
9
- ExecReload=/usr/local/bin/supervisorctl $OPTIONS reload
7
+ ExecStart=<%= @dir_path %>/supervisord -n -c /etc/supervisord.conf
8
+ ExecStop=<%= @dir_path %>/supervisorctl $OPTIONS shutdown
9
+ ExecReload=<%= @dir_path %>/supervisorctl $OPTIONS reload
10
10
  KillMode=process
11
11
  Restart=on-failure
12
12
  RestartSec=50s
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Supervisor
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
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-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-06 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae