diff --git a/core/boot.js b/core/boot.js index 840f6fd8e9..c782ab85a3 100644 --- a/core/boot.js +++ b/core/boot.js @@ -105,6 +105,9 @@ async function initCore({ghostServer, config}) { ghostServer.registerCleanupTask(async () => { await jobService.shutdown(); }); + ghostServer.registerCleanupTask(async () => { + await urlService.persistUrls(); + }); debug('End: Job Service'); debug('End: initCore');