pm2/examples/echokill.js
Alexandre Strzelewicz 7b13bdf3fe README - fixes
2013-05-29 22:30:16 +08:00

10 lines
191 B
JavaScript

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