tmux-plugins/tmux-resurrect

Restore processes with the same process name but different launch commands

Open

#108 aberto em 25 de set. de 2015

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Shell (509 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (12.753 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Process restoration seems to be based on the process name, but sometimes processes launched with different options will have the same process name, and you may want some of them in different panes.

Example:

  • I run my Rails server in a pane with foreman start web, and my Rails delayed jobs workers in a different pane with foreman start dj.
  • Both processes are named foreman: master, and appear as such in ps and ~/.tmux/resurrect/last
  • In @resurrect-processes, if I add "~foreman->foreman start web", both panes will try to launch my web server, (same problem with "~foreman->foreman start dj")

Would there be a better way to identify the restoration commands than the process name? (not that I can think of anything...)

Guia do colaborador