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

Consider adding start scripts.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.10, 6.0
    • None
    • None

    Description

      I've always found that starting Solr with java -jar start.jar is a little odd if you are not a java guy, but I think there are bigger pros than looking less odd in shipping some start scripts.

      Not only do you get a cleaner start command:
      sh solr.sh or solr.bat or something
      But you also can do a couple other little nice things:

      • it becomes fairly obvious for a new casual user to see how to start the system without reading doc.
      • you can make the working dir the location of the script - this lets you call the start script from another dir and still have all the relative dir setup work.
      • have an out of the box place to save startup params like -Xmx.
      • we could have multiple start scripts - say solr-dev.sh that logged to the console and default to sys default for RAM - and also solr-prod which was fully configured for logging, pegged Xms and Xmx at some larger value (1GB?) etc.

      You would still of course be able to make the java cmd directly - and that is probably what you would do when it's time to run as a service - but these could be good starter scripts to get people on the right track and improve the initial user experience.

      Attachments

        1. SOLR-3617.patch
          22 kB
          Timothy Potter
        2. SOLR-3617.patch
          41 kB
          Timothy Potter
        3. SOLR-3617.patch
          47 kB
          Timothy Potter
        4. SOLR-3617.patch
          59 kB
          Timothy Potter
        5. SOLR-3617.patch
          20 kB
          Timothy Potter

        Issue Links

          Activity

            People

              thelabdude Timothy Potter
              markrmiller@gmail.com Mark Miller
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: