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: 140e55a898f8910d2f6d3ccb975b39d67360f9bc
4
- data.tar.gz: 153ef8d64072b53ac7219a1860a18a4cc61d48a0
3
+ metadata.gz: 6a56195448d586dbee4ab1c39b842f346a619772
4
+ data.tar.gz: 71a8efbccd292a15e02b37da9dc6e1bd54162c67
5
5
  SHA512:
6
- metadata.gz: b7c71c4a88cd6c7f569f2dbeb65e630328707082a492b56cb61f7dfdaacf3fd381323444ec230324d1c50dd5e6104659feed9feda2e04737243cff199cb2c13e
7
- data.tar.gz: e36edddf8af692d6356012daf2c5761a1f2e5c4689d8548d6564a47c543c314719f490a31b61d7a929011a8dd824374e2029f3fecabedf0af15f2b11ca20e00d
6
+ metadata.gz: f47cf94a3197b8f424ba371a561148d16758f698aefc1c8bb59ad2c1507cbabfae7c6705a33c7f5d65b3c0b6de418f20face954d955953a4cbceeb5f2f026221
7
+ data.tar.gz: 8f8a93127fd3ea1c71c7e5864da622a250672a4fc8d8d4723aa82cb850c27e707849f1ec00b83e1fba5a70faf0843b8f523b22f3c6a421db1f260ea3cc18351a
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module O2webRecipes
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -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 cpu > 80% for 5 cycles then restart
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.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-01 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano