# libtmux.StartServerOptions

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-lua/blob/ec2c4d710bcec2bd54c1ded405e6652e873b0994/lua/libtmux/_internal/server.lua#L1202
- **Page:** https://libtmux.org/en/lua/latest/reference/libtmux-startserveroptions/

Options for `libtmux.Runtime:start_server`.

 `binary` is the only required field. The server lives in a fresh directory
 under `root`, with its socket inside, so `root` plus about 45 bytes must fit
 a socket path (`sun_path`: 107 bytes on Linux, 103 on macOS and the BSDs);
 a longer root fails with `invalid_endpoint` before anything is created. The
 directory holds the daemon's `TMUX_TMPDIR`, so a tmux client that names no
 socket cannot reach another server from inside it.

 The daemon inherits the caller's environment less `TMUX`, `TMUX_PANE` and
 every `LIBTMUX_SOCKET*` variable, plus `environment`. `environment` cannot
 set those names or `TMUX_TMPDIR`. The daemon runs with [`exit-empty off`](/en/tmux/latest/catalog/options/exit-empty/), so
 it stays up with no session.

## Members

### Common operations

- [`config`](/en/lua/latest/reference/libtmux-startserveroptions-config/) (attribute): Absolute configuration path. Defaults to `/dev/null`, which loads none.
- [`root`](/en/lua/latest/reference/libtmux-startserveroptions-root/) (attribute): Absolute directory that holds the private one. Defaults to the system
 temporary directory, or `/tmp` when that is too long for a socket path.

### Other members

- [`binary`](/en/lua/latest/reference/libtmux-startserveroptions-binary/) (attribute): Absolute tmux executable path.
- [`environment`](/en/lua/latest/reference/libtmux-startserveroptions-environment/) (attribute): Variables for the daemon and its panes, over the caller's.
- [`timeout`](/en/lua/latest/reference/libtmux-startserveroptions-timeout/) (attribute): Milliseconds that starting and stopping each wait for tmux. Defaults to 5000.
