修正退出前存档

This commit is contained in:
2024-12-16 07:45:33 +08:00
parent c86e3c3bcf
commit e4ceedd016

View File

@@ -141,7 +141,7 @@ export default function () {
// 捕获退出信号,确保数据存档 // 捕获退出信号,确保数据存档
process.on('SIGINT', async () => { process.on('SIGINT', async () => {
tail.unwatch() // 停止监听日志 tail.unwatch() // 停止监听日志
await archive('退出前存档数据...') await 存档('退出前存档数据...')
process.exit() process.exit()
}) })
} }