libtmux Reference MCP Search
On this page

tmux.Server.Start

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_attach.go
Start ( ctx : context.Context ) error
method [source]
method [source]
Start

Start starts the configured tmux server. It is idempotent when that server is already running. Completed stderr is an error; cancellation does not prove that a daemon was not started.

With tmux's exit-empty default, a server holding no sessions may exit before the next command even though Start succeeded. Create a session or disable exit-empty in ServerOptions.ConfigFile before startup. Use Server.IsAlive or Server.RaiseIfDead to check it.

0 declared, 0 inherited

Esc

Type to search.