Tomcat 7.0 as system service

Hi guys!
I just installed Tomcat 7.0 on openSuse 11.3 by mean:

tar -zxvf apache-tomcat-7.0.6.tar.gz

And I can to start it manually.
But I need to start it automatically as “system service” in some runlevels.

Can somebody to help me to install Tomcat 7.0 as system service?
(I never do something like that.)

Thanks, a lot.

OK…
By searching on Internet, I found Tomcat 7 installation has a script for autostart: “Tomcat7.sh”.
I copied that file to /etc/init.d and by mean of Yast, I added it to runlevels 3 and 5. I saved all changes.
Now, I can start Tomcat 7 by manually “enabling” in Yast → System → System Service, but when I restart the system Tomcat doesn’t start.
Any idea?
Thank you, in advance.

I colud get Tomcat 7 starts when openSuse startsup!
I just add:

JAVA_HOME=/usr/java/jdk1.6.0_23
CATALINA_HOME=/usr/share/apache-tomcat-7.0.6

to the beginning of tomcat7 file in /etc/init.d directory.
Note: tomcat7 file is a copy of Tomcat7.sh script in Tomcat instaqllation ($CATALINA_HOME/bin/commons-daemon-1.0.5-native-src/unix/samples/).

Thank you, very much.

If that is your issue, you may want to take a look at a couple of my old threads.

How to point environ var to JDK?
Problem: Sun JDK, not JRE

HTH,
Tony

Thanks, a lot.