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

        Roman Shaposhnik created issue -
        Roman Shaposhnik made changes -
        Field Original Value New Value
        Attachment BIGTOP-537.patch.txt [ 12522976 ]
        Roman Shaposhnik made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Peter Linnell added a comment -

        +1 LGTM

        Show
        Peter Linnell added a comment - +1 LGTM
        Roman Shaposhnik made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12662668 ] patch-available, re-open possible [ 12666026 ]
        Roman Shaposhnik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        15h 33m 1 Roman Shaposhnik 17/Apr/12 17:46
        Patch Available Patch Available Resolved Resolved
        44m 50s 1 Roman Shaposhnik 17/Apr/12 18:31
        Resolved Resolved Closed Closed
        430d 6h 24m 1 Roman Shaposhnik 22/Jun/13 00:55

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development