Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-537

provide a workaround for non-LSB compliant catalina.sh handling of a stop action

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: general
    • Labels:
      None

      Description

      Turns out that the default catalina.sh stop action is a weird in how it handles a missing PID file:

       if [ ! -z "$CATALINA_PID" ]; then
          if [ -f "$CATALINA_PID" ]; then
          ...
          else
            echo "\$CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted."
            exit 1
          fi
        fi
      

      This, effectively, means that one can't stop an already stopped service cleanly.

        Attachments

        1. BIGTOP-537.patch.txt
          0.7 kB
          Roman Shaposhnik

          Activity

            People

            • Assignee:
              rvs Roman Shaposhnik
              Reporter:
              rvs Roman Shaposhnik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: