0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Merge pull request #2903 from jaswilli/bootstrap-listener

Clear any existing SIGINT listeners during startup
This commit is contained in:
Sebastian Gierlinger 2014-06-07 17:23:23 +02:00
commit c3d49021da

View file

@ -133,7 +133,7 @@ function ghostStartMessages() {
); );
// ensure that Ghost exits correctly on Ctrl+C // ensure that Ghost exits correctly on Ctrl+C
process.on('SIGINT', function () { process.removeAllListeners('SIGINT').on('SIGINT', function () {
console.log( console.log(
"\nGhost has shut down".red, "\nGhost has shut down".red,
"\nYour blog is now offline" "\nYour blog is now offline"
@ -150,7 +150,7 @@ function ghostStartMessages() {
"\nCtrl+C to shut down".grey "\nCtrl+C to shut down".grey
); );
// ensure that Ghost exits correctly on Ctrl+C // ensure that Ghost exits correctly on Ctrl+C
process.on('SIGINT', function () { process.removeAllListeners('SIGINT').on('SIGINT', function () {
console.log( console.log(
"\nGhost has shutdown".red, "\nGhost has shutdown".red,
"\nGhost was running for", "\nGhost was running for",