Skip to content

Commit 590d59f

Browse files
committed
docs: add dnstc process manager issue draft
1 parent dbc232e commit 590d59f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

issues/dnstc-05-process-manager.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Process Manager
2+
3+
**Depends on:** #2 (Binary Manager)
4+
5+
## Summary
6+
7+
Manage lifecycle of gost and transport subprocesses (start, stop, reload, monitor).
8+
9+
**Motivation:** dnstc orchestrates multiple long-running processes. Need reliable process management with health monitoring and graceful shutdown.
10+
11+
## Design
12+
13+
**Managed processes:**
14+
- gost (DNS proxy + transport load balancer)
15+
- Slipstream client instance(s) - standalone mode
16+
- DNSTT client instance(s)
17+
- Shadowsocks client with Slipstream as SIP003 plugin
18+
19+
**Lifecycle operations:**
20+
- Start process with config
21+
- Stop process gracefully (SIGTERM, then SIGKILL)
22+
- Reload config (SIGHUP or restart)
23+
- Monitor process health (is it running?)
24+
25+
**Features:**
26+
- Automatic restart on crash
27+
- Log capture and forwarding
28+
- Clean shutdown on dnstc exit
29+
- Platform-appropriate signal handling (Windows vs Unix)

0 commit comments

Comments
 (0)