1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-06-27 00:51:30 +02:00

Stop bree and cloudflared while the server shutting down

This commit is contained in:
Louis Lam
2022-04-05 19:41:29 +08:00
parent d8b32d652f
commit 48d679234a
3 changed files with 22 additions and 7 deletions

View File

@ -83,3 +83,8 @@ module.exports.autoStart = async (token) => {
cloudflared.start();
}
};
module.exports.stop = async () => {
console.log("Stop cloudflared");
cloudflared.stop();
};