kersist_

FAQ

What is KERSIST?

KERSIST is a Linux command-line tool that makes tmux sessions persistent. Each managed session is backed by a system-level systemd unit, so it is restored after reboots and recovered from crashes.

Does KERSIST replace tmux?

No. KERSIST is layered on top of tmux. Your session is an ordinary tmux session: you attach with the usual kersist attach NAME / tmux keystrokes, split panes, detach, resize — the workflow is unchanged. KERSIST adds persistence and lifecycle management.

Does KERSIST survive a reboot?

Yes. Managed sessions recreate themselves automatically after a reboot with the same layout and the originally recorded commands. If you want a clean slate on the next boot instead, run kersist stop NAME first — a deliberately stopped session stays stopped.

What happens if a session crashes?

KERSIST notices the failure through its systemd unit and recreates the session from the saved configuration and the command that was running in each pane. Unexpected exits and crashes are recovered; deliberate exits (exit in the last pane, tmux kill-session) are respected and delete the saved configuration.

What if I intentionally exit the final shell?

The session and its KERSIST configuration are removed. KERSIST does not resurrect deliberately ended sessions. If you want the workspace back later, run kersist create again or kersist start NAME from a previous stop.

Can I still use ordinary tmux?

Yes. Unmanaged tmux sessions are untouched, and managed sessions work like any other tmux session. kersist ls lists both.

What Linux distributions are supported?

Tested on Ubuntu 24.04, Ubuntu 26.04, and Debian 12, on amd64 and arm64, all with systemd as PID 1. Dependencies: tmux 3.0+, Python 3.9+.

How do I uninstall it?

$ sudo apt remove kersist $ sudo apt purge kersist

Removing the package disables KERSIST's managed sessions. Your tmux sessions may keep running but will no longer be managed.

Is KERSIST open source?

No. KERSIST is proprietary software.