MCPcopy
hub / github.com/fosrl/pangolin / start

Method start

server/lib/traefik/TraefikConfigManager.ts:57–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 async start(): Promise<void> {
58 if (this.isRunning) {
59 logger.info("Certificate monitor is already running");
60 return;
61 }
62 this.isRunning = true;
63 logger.info(`Starting certificate monitor for exit node`);
64
65 // Ensure certificates directory exists
66 await this.ensureDirectoryExists(
67 config.getRawConfig().traefik.certificates_path
68 );
69
70 // Initialize local certificate state
71 this.lastLocalCertificateState = await this.scanLocalCertificateState();
72 logger.info(
73 `Found ${this.lastLocalCertificateState.size} existing certificate directories`
74 );
75
76 // Run initial check
77 await this.HandleTraefikConfig();
78
79 // Start synchronized scheduling
80 this.scheduleNextExecution();
81
82 logger.info(
83 `Certificate monitor started with synchronized ${
84 config.getRawConfig().traefik.monitor_interval
85 }ms interval`
86 );
87 }
88 /**
89 * Stop monitoring certificates
90 */

Callers 1

startServersFunction · 0.95

Calls 5

ensureDirectoryExistsMethod · 0.95
HandleTraefikConfigMethod · 0.95
scheduleNextExecutionMethod · 0.95
getRawConfigMethod · 0.80

Tested by

no test coverage detected