You could do something like this:
First copy stderr to stdout, then use tee to copy stdout to a file:
yourscript.sh 2>&1 |tee /tmp/out.log
Also remember that your startup script will run as root and that the
$PATH may not have been fully set-up at run time. Any file references
should use their full path.