Skip to content

Commit

Permalink
Merge pull request #6539 from bevacqua/feature/pid-file-earlier
Browse files Browse the repository at this point in the history
Write process pid file earlier
  • Loading branch information
spalger committed Mar 23, 2016
2 parents 12fe251 + 930a0eb commit 7bbfa22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server/kbn_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 7bbfa22

Please sign in to comment.