This all seems like stuff that should be fixed in the other programs you
mention rather than worked around in tmux. Don't they have a way to
does for 40 years, it's not new.
Post by Igor BukanovConsider running tmux on CoreOS. There when a user logs out from ssh,
that kills all user processes including any background tmux sessions.
The workaround is to run tmux server explicitly. For example, instead
systemd-run --unit "tmux-$USER" --service-type=forking tmux new-session -d
tmux attach
where systemd-run turns tmux process into a long-running service. Now,
this works as systemd supports forking services. However, If I want to
run tmux in a container, this option is not available. Container
managers like docker kills the container when the main process exits.
As tmux server cannot be invoked without forking, that requires to use
tmux new-session -d
while true; do
sleep 1
tmux list-sessions > /dev/null 2>&1 || break
done
In reality the script is more complex as it need to propagate the
termination signals to tmux for a clean shutdown. It would be really
nice if all that can be replaced with just doing tmux -F or whatever.
Post by Thomas AdamPost by Igor BukanovHello,
is there an option to start tmux server so the process would not fork
https://github.com/ThomasAdam/tmux-cvs-archived/commit/4ae54388081f3802700eae2ebcd876efcb2714f5.diff
But it's not needed or wanted within tmux.
Post by Igor Bukanovand stay in the foreground, like screen -D -m? This will greatly
simplify running tmux from a process manager that do not support
forking services like supervisord.
That would be the wrong solution.
-- Thomas Adam
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users