Results 1 to 5 of 5

Thread: Tomcat 7.0 as system service

  1. #1

    Default Tomcat 7.0 as system service

    Hi guys!
    I just installed Tomcat 7.0 on openSuse 11.3 by mean:
    Code:
    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.
    [Adrián E. Córdoba]

  2. #2

    Default Re: Tomcat 7.0 as system service

    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.
    [Adrián E. Córdoba]

  3. #3

    Red face Re: Tomcat 7.0 as system service SOLVED

    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.
    [Adrián E. Córdoba]

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,146
    Blog Entries
    2

    Default Re: Tomcat 7.0 as system service SOLVED

    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

  5. #5

    Default Re: Tomcat 7.0 as system service SOLVED

    Thanks, a lot.
    [Adrián E. Córdoba]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •