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