From 00dde49d79f0c498a9ee029a586e8484c30cba9a Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 29 Jun 2020 23:57:30 -0400 Subject: [PATCH] daemonization changes for storage calculations --- src/intervals/storage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intervals/storage.ts b/src/intervals/storage.ts index e41ba29..a3298a0 100644 --- a/src/intervals/storage.ts +++ b/src/intervals/storage.ts @@ -18,6 +18,7 @@ export default async function storage(client: Client) { client.signale.log(`Go storage func exited with code ${code}, restarting`); storageGo = spawn(`${__dirname}/../bin/storage`, [], { cwd: __dirname }); }); */ + client.signale.info(`Activated CSD-GO-STR daemon startup interval. Starting in ${intervalTiming / 60000}min.`); interval = setInterval(async () => { intervalTiming = await determineInterval(client); const storageDaemon = spawn(`${__dirname}/../bin/storage`, [], { cwd: __dirname }); @@ -26,6 +27,7 @@ export default async function storage(client: Client) { storageDaemon.on('exit', (code) => { client.signale.log(`CSD-GO-STR Daemon exited with code ${code}.`); storageDaemon.removeAllListeners(); + client.signale.info(`Reactivating CSD-GO-STR daemon startup interval. Reactivating in ${intervalTiming / 60000}min.`); }); }, intervalTiming); }