Fix startup/shutdown bugs in the init script. Increase the timeout the script waits to check that the server came up.