This commit is contained in:
xiaojunnuo
2024-09-20 15:15:24 +08:00
parent 7549b9443f
commit 9c773aaa05
19 changed files with 425 additions and 5 deletions
@@ -24,7 +24,9 @@ export class RestartCertdPlugin extends AbstractTaskPlugin {
delay = 30;
async onInstance() {}
async execute(): Promise<void> {
this.logger.info(`延迟 ${this.delay} 秒后重启 Certd`);
setTimeout(() => {
this.logger.info('重启 Certd');
process.exit(1);
}, this.delay * 1000);
}