Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12737

Let Solr init script create SOLR_PID_DIR

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.6.5, 7.4
    • Fix Version/s: None
    • Component/s: scripts and tools
    • Environment:

      CentOS 7.5

      Description

      It would be great if the Solr init script could create the configured SOLR_PID_DIR with permissions for the Solr user, if it doesn't exist.

      The use case is to store the PID file for the Solr service in a directory below the /run directory, which is typically mounted as tmpfs file system and empty after reboot. For example, with "SOLR_PID_DIR=/run/solr" in solr.in.sh, Solr will be unable to write its PID file after reboot because the solr subdirectory does not exist.

        Attachments

        1. init-script-mkdir-pid-dir.patch
          0.6 kB
          Andreas Hubold

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ahubold Andreas Hubold
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: