fix(systemdmanager): migrate systemd file operations to smartfs and tighten TypeScript safety

This commit is contained in:
2026-05-01 15:24:08 +00:00
parent a8b6ecb1a6
commit ddb77fd37d
12 changed files with 2569 additions and 3270 deletions
+8 -9
View File
@@ -21,20 +21,19 @@ export class SmartDaemonService implements ISmartDaemonServiceConstructorOptions
optionsArg: ISmartDaemonServiceConstructorOptions
) {
const service = new SmartDaemonService(smartdaemonRef);
for (const key of Object.keys(optionsArg)) {
service[key] = optionsArg[key];
}
Object.assign(service, optionsArg);
service.options = optionsArg;
return service;
}
public options: ISmartDaemonServiceConstructorOptions;
public options!: ISmartDaemonServiceConstructorOptions;
public alreadyExists = false;
public name: string;
public version: string;
public command: string;
public workingDir: string;
public description: string;
public name!: string;
public version!: string;
public command!: string;
public workingDir!: string;
public description!: string;
public user?: string;
public group?: string;