I would like there to always be a tmux session on a socket in /tmp/shared with a session of 0. That way I can always attach to the session via SSH:
ssh [email protected] -t tmux -S /tmp/shared attach-session -t 0
I want it to be shareable with other users and be able to recreate itself if a less knowledgeable, or careless user uses exit instead of [ctrl] + d when leaving the session.
I'm sure it's possible to do this in a cron, but I don't know that there isn't a better way.