Added an additional log to notify shutdown start

- there can now be quite a big delay between SIGINT/TERM being received and shutdown finishing
- add an extra log message to acknowledge the SIGINT/TERM to facilitate debugging and just be clear
This commit is contained in:
Hannah Wolfe 2020-08-10 14:53:05 +01:00
parent 64856dc5a3
commit a9c6e081cf
2 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class GhostServer {
async function shutdown() { async function shutdown() {
try { try {
logging.warn(i18n.t('notices.httpServer.ghostIsShuttingDown'));
await self.stop(); await self.stop();
process.exit(0); process.exit(0);
} catch (error) { } catch (error) {

View File

@ -650,6 +650,7 @@
"ghostIsRunningIn": "Ghost is running in {env}...", "ghostIsRunningIn": "Ghost is running in {env}...",
"listeningOn": "Listening on: {host}:{port}", "listeningOn": "Listening on: {host}:{port}",
"urlConfiguredAs": "Url configured as: {url}", "urlConfiguredAs": "Url configured as: {url}",
"ghostIsShuttingDown": "Ghost is shutting down",
"ghostHasShutdown": "Ghost has shut down", "ghostHasShutdown": "Ghost has shut down",
"yourBlogIsNowOffline": "Your site is now offline", "yourBlogIsNowOffline": "Your site is now offline",
"ghostWasRunningFor": "Ghost was running for" "ghostWasRunningFor": "Ghost was running for"