Process started by init.d script unable to create/write to file

view full story

http://serverfault.com – I used the init.d skeleton template to create an init.d script that starts up a basic java process. When I run my init.d script, the process starts up and works fine. The only problem is that the process doesn't produce the required log files while it's running. When I run the java process directly through commandline, these log files get created just fine. This doesn't look like it's a permissions issue. When I start my init.d script and list all processes, it shows that the java process started under as the correct user. Server is Ubuntu 10.04. Init.d script below... #! /bin/sh ### BEGIN (HowTos)