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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e780d15188b7cfe80908dcfba465899fe5598a1
|
4
|
+
data.tar.gz: 85174e95ad4d2123ef6bbaeb3df7fd53f846ebe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/itamae/plugin/recipe/supervisor/templates/etc/systemd/system/supervisord.service.erb
CHANGED
@@ -4,9 +4,9 @@ Documentation=http://supervisord.org
|
|
4
4
|
After=network.target
|
5
5
|
|
6
6
|
[Service]
|
7
|
-
ExecStart
|
8
|
-
ExecStop
|
9
|
-
ExecReload
|
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
|
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.
|
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-
|
11
|
+
date: 2019-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|