@rubytech/taskmaster 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/control-ui/assets/{index-D9HCutTJ.js → index-DgT0m3bj.js} +2 -8
- package/dist/control-ui/assets/index-DgT0m3bj.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/server-methods/system.js +7 -7
- package/package.json +1 -1
- package/dist/control-ui/assets/index-D9HCutTJ.js.map +0 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>Taskmaster Control</title>
|
|
7
7
|
<meta name="color-scheme" content="dark light" />
|
|
8
8
|
<link rel="icon" type="image/png" href="./favicon.png" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-DgT0m3bj.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="./assets/index-BQEnHucA.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
@@ -134,25 +134,25 @@ export const systemHandlers = {
|
|
|
134
134
|
respond(true, { ok: true, scopes, purge }, undefined);
|
|
135
135
|
// Small delay to let the response reach the client
|
|
136
136
|
await new Promise((r) => setTimeout(r, 500));
|
|
137
|
-
//
|
|
138
|
-
//
|
|
139
|
-
//
|
|
137
|
+
// skipService: we cannot stop our own service — systemd would SIGTERM
|
|
138
|
+
// this process before workspace/state removal runs. The service files
|
|
139
|
+
// are uninstalled separately below (without stopping).
|
|
140
140
|
try {
|
|
141
141
|
await uninstallCommand(defaultRuntime, {
|
|
142
|
-
service: false,
|
|
143
142
|
state: scopes.includes("state"),
|
|
144
143
|
workspace: scopes.includes("workspace"),
|
|
145
144
|
app: scopes.includes("app"),
|
|
146
145
|
purge,
|
|
146
|
+
skipService: true,
|
|
147
147
|
yes: true,
|
|
148
148
|
nonInteractive: true,
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
catch (err) {
|
|
152
|
-
log.error(`system.uninstall
|
|
152
|
+
log.error(`system.uninstall failed: ${String(err)}`);
|
|
153
153
|
}
|
|
154
|
-
//
|
|
155
|
-
//
|
|
154
|
+
// Uninstall the service files without stopping — we ARE the service.
|
|
155
|
+
// process.exit below handles the actual stop.
|
|
156
156
|
if (scopes.includes("service")) {
|
|
157
157
|
try {
|
|
158
158
|
const service = resolveGatewayService();
|