Commit 21cce236 authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

amqp dead restart

parent 3e99e53a
...@@ -59,8 +59,10 @@ SS.prototype.amqp_start = function() ...@@ -59,8 +59,10 @@ SS.prototype.amqp_start = function()
console.log('SS:AMQP START\t\t\t[OK]'); console.log('SS:AMQP START\t\t\t[OK]');
}else{ }else{
console.log('SS:AMQP START\t\t\t[ERR]'); console.log('SS:AMQP START\t\t\t[ERR]');
console.log(err.message); console.log('SS:AMQP ERROR Restarting ...');
process.exit(1); setTimeout(function(){
process.exit(1);
},5000);
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment