added --checkstartuponly option to script, which exits after the startup check.
The script returns 1 when it should start (so it tries to restart on errors too) and 0 if the script should not start.
The cron job as been modified to use this option. This fixes the stdout redirection, so the cron job does not overwrite it.