You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/programs/core/ignition/services.ts
+20-11Lines changed: 20 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -259,14 +259,12 @@ export class ServiceManager {
259
259
// TODO: check dependencies are running, start them if not (be careful of circular deps, could use calculate_service_start_order for this with a subset of 1)
260
260
261
261
if(this.#running_services.has(service_id)){
262
-
console.warn(`Service ${service_id} is already running.`);
263
-
return;
262
+
return[false,`Service ${service_id} is already running.`];
264
263
}
265
264
266
265
constservice=this.#service_files.get(service_id);
267
266
if(!service){
268
-
console.error(`Service ${service_id} not found.`);
269
-
return;
267
+
return[false,`Service ${service_id} not found.`];
270
268
}
271
269
272
270
// mark service as should be running, so exit handlers know to restart it
0 commit comments