Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-795

[SOLARIS] Tomcat CATALINA_PID default value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • tomcat
    • None
    • User Experience

      Default CATALINA_PID points to "/var/run/tomcat7.pid" that might not be accessible by user tomcat

      [hudson@jwssol01-01 jws-3.1]$ cat etc/sysconfig/tomcat7
      ...
      # Set the TOMCAT_PID location
      CATALINA_PID="/var/run/tomcat7.pid"
      ...
      
      [hudson@jwssol01-01 jws-3.1]$ ls -lah /var/run/
      total 1331
      drwxr-xr-x  12 root     sys         2.4K Aug  3 12:43 .
      drwxrwxrwx   6 root     root           6 Nov 24  2016 ..
      

      Tomcat then fails to create PID file.

      sudo su tomcat -c share/tomcat7/bin/shutdown.sh
      $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.
      

      Apache httpd uses similar configuration, but it uses it as

      [hudson@jwssol01-01 jbcs-httpd24-2.4]$ ls -ladh etc/httpd/run
      lrwxrwxrwx   1 root     root          14 Aug  3 12:35 etc/httpd/run -> /var/run/httpd
      
      [hudson@jwssol01-01 jbcs-httpd24-2.4]$ ls -lahd /var/run/httpd
      drwxrwxrwx   2 apache   root         117 Aug  3 12:50 /var/run/httpd
      

      This might be idea for the fix

              rhn-support-csutherl Coty Sutherland
              bsikora Bogdan Sikora (Inactive)
              Jan Štefl Jan Štefl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: