capistrano-o2web-recipes 0.1.1 → 0.1.3
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: 6a56195448d586dbee4ab1c39b842f346a619772
|
4
|
+
data.tar.gz: 71a8efbccd292a15e02b37da9dc6e1bd54162c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f47cf94a3197b8f424ba371a561148d16758f698aefc1c8bb59ad2c1507cbabfae7c6705a33c7f5d65b3c0b6de418f20face954d955953a4cbceeb5f2f026221
|
7
|
+
data.tar.gz: 8f8a93127fd3ea1c71c7e5864da622a250672a4fc8d8d4723aa82cb850c27e707849f1ec00b83e1fba5a70faf0843b8f523b22f3c6a421db1f260ea3cc18351a
|
@@ -175,21 +175,28 @@ namespace :monit do
|
|
175
175
|
desc 'Start monit'
|
176
176
|
task :start do
|
177
177
|
on roles :app do |host|
|
178
|
-
execute :sudo, 'monit start all'
|
178
|
+
execute :sudo, 'service monit start all'
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
desc 'Restart monit'
|
183
|
+
task :restart do
|
184
|
+
on roles :app do |host|
|
185
|
+
execute :sudo, 'service monit restart all'
|
179
186
|
end
|
180
187
|
end
|
181
188
|
|
182
189
|
desc 'Stop monit'
|
183
190
|
task :stop do
|
184
191
|
on roles :app do |host|
|
185
|
-
execute :sudo, 'monit stop all'
|
192
|
+
execute :sudo, 'service monit stop all'
|
186
193
|
end
|
187
194
|
end
|
188
195
|
|
189
196
|
desc 'Reload monit'
|
190
197
|
task :reload do
|
191
198
|
on roles :app do |host|
|
192
|
-
execute :sudo, 'monit reload'
|
199
|
+
execute :sudo, 'service monit reload'
|
193
200
|
end
|
194
201
|
end
|
195
202
|
end
|
@@ -240,7 +240,7 @@ set httpd port 2812 and
|
|
240
240
|
check process nginx with pidfile /var/run/nginx.pid
|
241
241
|
start program = "/etc/init.d/nginx start"
|
242
242
|
stop program = "/etc/init.d/nginx stop"
|
243
|
-
if
|
243
|
+
if failed host 127.0.0.1 port 80 then restart
|
244
244
|
|
245
245
|
###############################################################################
|
246
246
|
## Includes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-o2web-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrice Lebel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|