pm2/examples/echokill.js
Alexandre Strzelewicz 03ff6672d0 PM2 EVOLUTION
2013-09-28 17:33:46 +02:00

11 lines
192 B
JavaScript

setInterval(function() {
console.log('log message from echo auto kill');
}, 800);
setTimeout(function() {
console.error('error message, killing my self');
process.exit(10);
}, 3000);