I have a script:
#!/bin/bash
/my-path/to/long-running-process/start-server
This starts up a JVM server which is supposed to keep working after the bash script terminates. How can I get the PID of the JVM process from within the same bash script so I can write it to a file in case I need to kill it later?