var Entrypoint = require('@pm2/io').Entrypoint
new class App extends Entrypoint {
onStart(cb) {
console.log('started')
return cb()
}
onStop(err, cb) {
console.log('should not exit without having called the callback')
}
}
when starting this app, it should not auto exit because the cb of onStop has never been called
when starting this app, it should not auto exit because the cb of onStop has never been called