kersist_

Documentation

KERSIST is a Linux command-line utility for creating tmux sessions that persist across reboots, recover from crashes, and follow an explicit lifecycle.

What is KERSIST?

KERSIST = Kerkar Persistent Sessions. It makes chosen tmux sessions persistent by managing them with the system's own systemd. It does not replace tmux, and it does not add a kernel module, agent daemon that stays inside your session, or a custom service manager.

Supported systems

Command summary

CommandWhat it does
create NAMECreate a new persistent session in the current directory and attach.
attach NAMEAdopt an existing tmux session; make it persistent without touching it.
lsList KERSIST sessions (and ordinary tmux sessions).
start NAMEStart or recreate a session from its saved configuration.
stop NAMEStop a session but keep its configuration; it stays stopped after reboot.
restart NAMEStop and recreate from the saved configuration.
drop NAMEStop managing a session; the tmux session keeps running.
status NAMEShow the live lifecycle state of one managed session.
exec NAME COMMAND...Run a command inside a managed session without attaching.

See the full command reference.

Lifecycle semantics

Installation

$ curl -fsSL https://apt.kersist.kerkars.com/install | sudo bash

Then:

$ sudo apt install kersist $ kersist --version

See Installation for details and repository information.

Related pages