stop-bitbucket.sh does not work if BITBUCKET_HOME is defined as a envvar for BITBUCKET_USER

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Low
    • None
    • Affects Version/s: 4.0.2
    • None
    • Environment:

      RHEL 6.6, Bitbucket 4.0.2

      In start-bitbucket.sh the command for launching Bitbucket as another user looks like this:

      $sucmd -l $BITBUCKET_USER -c "cd $(pwd);$PRGDIR/catalina.sh run $@"
      

      In stop-bitbucket.sh it looks like this:

      $sucmd -m $BITBUCKET_USER -c "$PRGDIR/shutdown.sh 60 -force $@"
      

      By using -m instead of -l in stop-bitbucket.sh, shutdown.sh won't get the environment of BITBUCKET_USER and will therefore fail. Right now the workaround is having to define everything in setenv.sh.

            Assignee:
            Unassigned
            Reporter:
            Christoffer Kylvåg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: