Hard Hat Hosting - "Virtual Dedicated Server" web hosting

How come my catalina.out file is zero length?

Original URL: http://help.hardhathosting.com/question.php/159

The Tomcat STDOUT is being redirected to /dev/null. You can modify the start script to send the output to the /var/log/tomcat4/catalina.out file, by doing the following.

Edit the /usr/bin/dtomcat4 file.

Modify the following text:

org.apache.catalina.startup.Bootstrap "$@" start \
>dev/null 2>&1 &
#LOG: # >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
To look like this.
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
Then restart tomcat with:

/etc/rc.d/init.d/apachectl restart

Back to original article