Bigtop
  1. Bigtop
  2. BIGTOP-537

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        Hide
        Peter Linnell added a comment -

        +1 LGTM

        Show
        Peter Linnell added a comment - +1 LGTM

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development