I'm wondering about the SSH
When I try to start a Tomcat server like this:
ssh email@example.com -t '~/tomcat/bin/startup.sh'
then Tomcat will not be started, eventhough the startup script is running through. Without the
-t option, it works.
From my understanding, this is because once the startup script finishes, the connection is closed, and therefore all background processes that have been started by the script cease to exist.
Why is this the case? I'm not too familiar with shell sessions and jobs/processes.
Is there any way to bring Tomcat up with using the
-t option? (Unfortunately I'm forced to use it because of Ansible).