Skip to content

Commit

Permalink
Only restart if http error is >= 500
Browse files Browse the repository at this point in the history
  • Loading branch information
neojp committed Nov 9, 2012
1 parent 0dd5a62 commit f79f2f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/forever-check.js
Expand Up @@ -57,12 +57,8 @@ function clabie_check(){

if (res.statusCode >= 500) {
console.log('');
setTimeout(clabie_check, delay);
return;
clabie_restart();
}

// restart clabie
clabie_restart();
});

req.on('error', function(e){
Expand Down

0 comments on commit f79f2f1

Please sign in to comment.