You can get this information in any server-side script of a module.
const status = await Namespace.services.myService.status();
Status of the portable service.
Object that stores information about the status of the portable service of the module
You can get this information in any server-side script of a module.
const status = await Namespace.services.myService.status();