MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / generateService

Method generateService

warp/warp.ts:334–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332Wants=network-online.target
333After=network-online.target
334Documentation=https://github.com/fscarmen/warp-sh
335Documentation=https://github.com/pufferffish/wireproxy
336
337[Service]
338ExecStart=${WIREPROXY_BINARY} -c ${WIREPROXY_CONFIG_FILE}
339RemainAfterExit=yes
340Restart=always
341RestartSec=3
342
343[Install]
344WantedBy=multi-user.target`;
345 }
346
347 static async stop(): Promise<string> {
348 try {
349 await execAsync("sudo systemctl stop wireproxy || true");
350 await execAsync("sudo systemctl disable wireproxy || true");
351 return "✅ wireproxy 已停止";
352 } catch (e: any) {
353 return `❌ wireproxy 停止失败: ${htmlEscape(e?.message || e)}`;

Callers 1

setupAndStartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected