kitowall 6.3.0 → 6.9.0
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/core/live.js +18 -0
- package/package.json +1 -1
package/dist/core/live.js
CHANGED
|
@@ -2118,7 +2118,13 @@ async function liveServiceAutostart(action) {
|
|
|
2118
2118
|
out = integratedRendercoreStart(bin);
|
|
2119
2119
|
}
|
|
2120
2120
|
else if (action === 'stop' || action === 'disable') {
|
|
2121
|
+
const stopped = await (0, workshop_1.workshopStop)({ all: true });
|
|
2121
2122
|
out = integratedRendercoreStop(bin);
|
|
2123
|
+
out.stdout = [
|
|
2124
|
+
out.stdout.trim(),
|
|
2125
|
+
`restored_units=${stopped.restored_units.join(',') || '-'}`,
|
|
2126
|
+
`stopped_instances=${stopped.stopped_instances.join(',') || '-'}`
|
|
2127
|
+
].filter(Boolean).join('\n');
|
|
2122
2128
|
}
|
|
2123
2129
|
else {
|
|
2124
2130
|
integratedRendercoreStop(bin);
|
|
@@ -2162,7 +2168,13 @@ async function liveServiceAutostart(action) {
|
|
|
2162
2168
|
out = await runSystemctlUser(['enable', 'kitsune-rendercore.service']);
|
|
2163
2169
|
}
|
|
2164
2170
|
else if (action === 'disable') {
|
|
2171
|
+
const stopped = await (0, workshop_1.workshopStop)({ all: true });
|
|
2165
2172
|
out = await runSystemctlUser(['disable', '--now', 'kitsune-rendercore.service'], true);
|
|
2173
|
+
out.stdout = [
|
|
2174
|
+
out.stdout.trim(),
|
|
2175
|
+
`restored_units=${stopped.restored_units.join(',') || '-'}`,
|
|
2176
|
+
`stopped_instances=${stopped.stopped_instances.join(',') || '-'}`
|
|
2177
|
+
].filter(Boolean).join('\n');
|
|
2166
2178
|
}
|
|
2167
2179
|
else if (action === 'start') {
|
|
2168
2180
|
const binPath = await resolveHostExecutablePath(bin);
|
|
@@ -2171,7 +2183,13 @@ async function liveServiceAutostart(action) {
|
|
|
2171
2183
|
out = await runSystemctlUser(['start', 'kitsune-rendercore.service']);
|
|
2172
2184
|
}
|
|
2173
2185
|
else if (action === 'stop') {
|
|
2186
|
+
const stopped = await (0, workshop_1.workshopStop)({ all: true });
|
|
2174
2187
|
out = await runSystemctlUser(['stop', 'kitsune-rendercore.service'], true);
|
|
2188
|
+
out.stdout = [
|
|
2189
|
+
out.stdout.trim(),
|
|
2190
|
+
`restored_units=${stopped.restored_units.join(',') || '-'}`,
|
|
2191
|
+
`stopped_instances=${stopped.stopped_instances.join(',') || '-'}`
|
|
2192
|
+
].filter(Boolean).join('\n');
|
|
2175
2193
|
}
|
|
2176
2194
|
else {
|
|
2177
2195
|
const binPath = await resolveHostExecutablePath(bin);
|