There are sometimes requirement on server side to keep background process from terminating. Follow following article to achieve it using tmux.
ssh into the remote machine
Start tmux by typing
tmuxinto the shellStart the process you want inside
tmuxsession. In this I will be running Cloud Commandercloudcmd.
cloudcmd
Leave / Detach the tmux session by typing
Ctrl+band thend.List all tmux sessions by
tmux list-sessions
- Attach / Resume to a running session with
tmux attach-session -t <session-name>
