Update server/monitor-types/system-service.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
iotux 2026-01-01 08:19:55 +01:00 committed by GitHub
parent 134877317c
commit c09882b00a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,8 +95,7 @@ class SystemServiceMonitorType extends MonitorType {
} }
if (error || stderr) { if (error || stderr) {
heartbeat.msg = output || `Service '${serviceName}' is not running/found.`; reject(new Error(`Service '${serviceName}' is not running/found.`));
reject(new Error(heartbeat.msg));
return; return;
} }