kexsh server
The kexsh server is a background daemon that manages all terminal instances. It starts automatically when you create a terminal, but you can also manage it directly.
Synopsis
Section titled “Synopsis”kexsh server <command>Commands
Section titled “Commands”Start the server as a background daemon.
kexsh server startServer started (pid: 12345)The server forks into the background — you can close the terminal that started it. If the server is already running, this is a no-op.
Stop the server. All running terminals are terminated.
kexsh server stopServer stoppedstatus
Section titled “status”Check whether the server is running.
kexsh server statusServer running (pid: 12345) Terminals: 3 Uptime: 2 hoursHow it works
Section titled “How it works”The server communicates with the CLI client over a Unix domain socket. When you run commands like kexsh terminal create, the CLI sends a request to the server over IPC, and the server manages the actual terminal process.
The PID file is stored at $XDG_RUNTIME_DIR/kexsh/server.pid (or /tmp/kexsh-<uid>/server.pid as fallback).
See also
Section titled “See also”- Core Concepts — the role of the server
- kexsh terminal — manage terminals