I was having some trouble when trying to run 2 tmux sessions on startup and I can not for the life of me figure out the problem. To run 1 tmux session I use the following code:
sudo -H -u USERNAME tmux new-session -d -s session1 'python3 Main.py'
I thought to run 2 session I just needed to copy paste this line and change the script name and session name. But this doesn’t do anything in my case because when I go to my server it say only the first tmux session is running. Does anyone know what I am doing wrong?