Re: Tomcat service only starts if
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 9/7/2010 11:32 AM, Jeff Hubbs wrote: > Tomcat 5.5.23, sun-jdk 1.5.0_11, CentOS 4.8. Tomcat was > built/installed from upstream. Tomcat service starts and runs normally > if user tomcat's entry in /etc/passwd has "/home/tomcat:/bin/bash" but > not if it has "/dev/null:/sbin/nologin". Would rather have it work set > to the latter, which seems to be the "industrially correct" thing to do. Apache doesn't supply any "service" scripts, so you should talk to CentOS about how to do this. One obvious solution would be to edit the service script and put a "cd" in there. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyGojgACgkQ9CaO5/Lv0PAthwCeKlDMFis8CMYht0AtHnz1VHA9 uHIAnRm/IA3ATnzcchRl8hF2zIKgz3hz =z8Ef -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat service only starts if
How do you start tomcat? What script gets executed? Probably your bash profile script for the "tomcat" account was setting the PATH and/or LD_LIBRARY_PATH for you. Review your startup script. On Tue, Sep 7, 2010 at 11:32 AM, Jeff Hubbs wrote: > Tomcat 5.5.23, sun-jdk 1.5.0_11, CentOS 4.8. Tomcat was built/installed > from upstream. Tomcat service starts and runs normally if user tomcat's > entry in /etc/passwd has "/home/tomcat:/bin/bash" but not if it has > "/dev/null:/sbin/nologin". Would rather have it work set to the latter, > which seems to be the "industrially correct" thing to do. > > I discovered this when I was trying to fix the Tomcat service failing to > start and I changed the tomcat user account to look like a normal user's so > I could execute catalina.sh manually via su. I had to chmod +x some .sh > files that the install script did not set and then executing catalina.sh > could start and stop the instance, but now I can only start the service with > the tomcat user account left like that. > > Thanks, > - Jeff > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat service only starts if
Tomcat 5.5.23, sun-jdk 1.5.0_11, CentOS 4.8. Tomcat was built/installed from upstream. Tomcat service starts and runs normally if user tomcat's entry in /etc/passwd has "/home/tomcat:/bin/bash" but not if it has "/dev/null:/sbin/nologin". Would rather have it work set to the latter, which seems to be the "industrially correct" thing to do. I discovered this when I was trying to fix the Tomcat service failing to start and I changed the tomcat user account to look like a normal user's so I could execute catalina.sh manually via su. I had to chmod +x some .sh files that the install script did not set and then executing catalina.sh could start and stop the instance, but now I can only start the service with the tomcat user account left like that. Thanks, - Jeff - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org