This is my first attempt at running a Linux server. I have a server application which I want to run on a server to which I have ssh access.
If this were a Windows server, I'd just open a remote desktop, run the thing and disconnect the remote desktop session. However, it is my understanding that logging out of an ssh session kills all processes spawned within.
So I did a bit of searching and it seems I'll have to use screen
or tmux
to keep my process running after a disconnection. However, I'd like to know if there's a better way. The server process should be able to read control commands from stdin, and I'd rather be able to view some stdout logging output as well (though the rest of it inevitably goes into a log file).
UPDATE: I'm currently running the app inside a tmux session. It seems to be working alright, but I don't quite feel this is the best possible way...