# io.github.libtmux.PrivateDaemon

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/851a1b7f1f9b9b2bf0fa9f578de78acd3631f33d/libtmux/src/main/java/io/github/libtmux/PrivateDaemon.java#L33
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon/

The tmux daemon {@link Server#start} owns, and the directory it lives in.

The daemon runs in the foreground as a child of this JVM ({@code -D}), so its exit is observed
on the process rather than inferred from a socket. Its environment has none of the caller's
selectors and a {@code TMUX_TMPDIR} inside the directory, so a tmux started from a pane without a
socket lands under the directory too, where {@link #close} looks for it.

## Members

### Other members

- [`close`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-close/) (method): Ends the daemon, then any server left under the directory, and removes the directory.
- [`config`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-config/) (method): The configuration of a client for this daemon.
- [`deleteTree`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-deletetree/) (method)
- [`environment`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-environment/) (method): The environment the daemon gets: the caller's, without anything that selects a server.
- [`reap`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-reap/) (method): The sweep over the processes it is given, so a test can describe them without starting any.
- [`reapAbandoned`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-reapabandoned/) (method): Ends every tmux server under {@code root} whose owning JVM is gone, and answers how many ended. Runs while other runs use the same root, so it may only touch abandoned servers.
- [`start`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-start/) (method): Starts a daemon and waits until it answers.
- [`startOf`](/en/java/latest/reference/io-github-libtmux-privatedaemon-privatedaemon-startof/) (method): When a process started, read the same way by every JVM on the machine.
