OK, so the PID file isn't of much use. How can I restart the backend from a crash I was going to try something like the following... #!/bin/bash while ( true ); do ./mythbackend done