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:
commit
c3d49021da
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue