export function startService(id: string, filename: string) {
console.log(`startService - ${id}`);
+ if (global['serviceType'] === 'STANDALONE') {
+ let ids = id.split(':');
+ let serviceId = ids[0];
+ let packageId = serviceId.split('.')[0];
+ wrt.security?.dropThreadPrivilege(packageId, serviceId);
+ }
let startService = `${__dirname}/service_runner.js`;
createWorker(id, startService, filename);
}