tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.41k stars 424 forks source link

Linux Checkpoint / Restore support #428

Open vimpostor opened 2 years ago

vimpostor commented 2 years ago

The Linux kernel supports a very powerful feature called Checkpoint - Restore, where you can basically dump an entire process and its used RAM to the filesystem and restore it later: https://github.com/checkpoint-restore/criu

Has there been any thoughts on using this to resurrect running processes after a system reboot? Right now tmux-resurrect restarts every process from the beginning, by just remembering the command that started the process and executing it again. I think it would be very powerful if there was a whitelist of programs that may be checkpointed and restored automatically using above mentioned mechanism.