Add global seal-use stop command and shutdown HTTP route

This commit is contained in:
gitea committed 2026-09-04 17:58:30 +08:00
1 parent 37580dac44
commit f9b8b06647
4 files changed
+90 -69

No files matched your search

+6
View File
@@ -45,6 +45,7 @@ const DEFAULT_APP_ROOT = dirname(dirname(dirname(fileURLToPath(import.meta.url))
const KNOWN_AREAS = new Set([
"config",
"service",
"stop",
"http",
"serve",
"update",
@@ -212,6 +213,11 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
return;
}
if (area === "stop") {
await handleServiceCommand("stop", runtime, args);
return;
}
if (area === "http" || area === "serve") {
await handleHttpCommand(args);
return;
+3
View File
@@ -28,6 +28,9 @@ export async function runServiceCommand(
case "start":
return startService(config);
case "stop":
case "kill":
case "down":
case "shutdown":
return stopService(config, options);
case "restart":
stopService(config, { quiet: true });