cli
.option('--no-client', 'Start PeerTube without client interface')
.option('--no-plugins', 'Start PeerTube without plugins/themes enabled')
+ .option('--benchmark-startup', 'Automatically stop server when initialized')
.parse(process.argv)
// ----------- App -----------
logger.info('Web server: %s', WEBSERVER.URL)
Hooks.runAction('action:application.listening')
+
+ if (cliOptions['benchmarkStartup']) process.exit(0)
})
process.on('exit', () => {