RHEL 4 reboot causes Tomcat process to not be started by non-root account

Posted by Woot4Moo on Super User See other posts from Super User or by Woot4Moo
Published on 2010-05-25T18:57:44Z Indexed on 2010/05/25 19:03 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

I have a startup script placed in /etc/init.d wherein I make the following call:

nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1  

This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?

© Super User or respective owner

Related posts about linux

Related posts about tomcat