Daemon
WarpDL uses a daemon architecture where a background process manages all downloads.
How It Works
Section titled “How It Works”CLI Command → Unix Socket/Named Pipe → Daemon → Download EngineThe daemon:
- Runs in the background
- Manages multiple concurrent downloads
- Persists state across CLI sessions
- Handles retry and resume logic
Starting the Daemon
Section titled “Starting the Daemon”The daemon starts automatically when you run any download command. To start it manually:
warpdl daemonStopping the Daemon
Section titled “Stopping the Daemon”warpdl stop-daemonCommunication
Section titled “Communication”| Platform | Default IPC |
|---|---|
| Linux/macOS | Unix socket at $TMPDIR/warpdl.sock (defaults to /tmp/warpdl.sock) |
| Windows | Named pipe \\.\pipe\warpdl |
To customize the socket path:
export WARPDL_SOCKET_PATH=/custom/path.sockTo force TCP connection:
export WARPDL_FORCE_TCP=1export WARPDL_TCP_PORT=3849Daemon as a Service
Section titled “Daemon as a Service”See Service Setup for running the daemon as a system service.