mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[startup] Write process pid file earlier as per #4680
This commit is contained in:
parent
ecd13ad0e7
commit
930a0eb8c8
1 changed files with 4 additions and 2 deletions
|
@ -20,6 +20,9 @@ module.exports = class KbnServer {
|
|||
require('./logging'),
|
||||
require('./status'),
|
||||
|
||||
// writes pid file
|
||||
require('./pid'),
|
||||
|
||||
// find plugins and set this.plugins
|
||||
require('./plugins/scan'),
|
||||
|
||||
|
@ -74,9 +77,8 @@ module.exports = class KbnServer {
|
|||
|
||||
await this.ready();
|
||||
await fromNode(cb => server.start(cb));
|
||||
await require('./pid')(this, server, config);
|
||||
|
||||
server.log(['listening', 'info'], 'Server running at ' + server.info.uri);
|
||||
server.log(['listening', 'info'], `Server running at ${server.info.uri}`);
|
||||
return server;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue