# tmux.Server.Start

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/server_attach.go#L70
- **Page:** https://libtmux.org/reference/go/tmux-server-start/

```
tmux.Server.Start(ctx: context.Context) -> error
```

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.
