On Thu Apr 14, 2011 at 04:00:26PM +0200, matteo filippetto wrote: > Hi, > > I installed tomcat 6.0.20 on openbsd 4.8 release > > No problem with installation and configuration but when I try to start tomcat > with sudo -u _tomcat /usr/local/tomcat/bin/startup.sh in > /etc/rc.local tomcat couldn't start. > > Output from console > > /usr/local/tomcat/bin/catalina.sh: /etc/tomcat/tomcat.rc[11]: > javaPathHelper: not found > Neither the JAVA_HOME nor the JRE_HOME environment variable is defined > At least one of these environment variable is needed to run this program > Edit `/etc/tomcat/tomcat.rc' to point to your $JAVA_HOME > > Starting tomcat from rc.local without switch user (i.e. using root) > has no problem. > > so the problem is that tomcat.rc can't find javaPathHelper when > starting from rc.local with sudo. > > So I modified /etc/tomcat/tomcat.rc and atteched a diff. >
I get the same issue under 4.8. We should build /etc/rc.d script for 4.9, -current. Is any working one version 7? best regards Rafael Sadowski -- http://www.sizeofvoid.org - raf...@sizeofvoid.org XMPP: z...@jabber.ccc.de Key fingerprint: BDDD 91E9 28CB 3A52 3E99 61B0 C359 2691 BAC6 A3B1