From d862227314d69375fd568c92e7f9a083210e92a4 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 30 Apr 2015 15:04:43 +0100 Subject: [PATCH] make startup message consistent --- services/document-updater/app.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/document-updater/app.coffee b/services/document-updater/app.coffee index 3cb2723b34..3717d2f272 100644 --- a/services/document-updater/app.coffee +++ b/services/document-updater/app.coffee @@ -83,8 +83,9 @@ shutdownCleanly = (signal) -> , 10000 port = Settings.internal?.documentupdater?.port or Settings.apis?.documentupdater?.port or 3003 -app.listen port, "localhost", -> - logger.log("documentupdater-sharelatex server listening on port #{port}") +host = Settings.internal.documentupdater.host or "localhost" +app.listen port, host, -> + logger.info "Document-updater starting up, listening on #{host}:#{port}" for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT'] process.on signal, shutdownCleanly(signal) \ No newline at end of file