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

bin/solr script doesn't do ps properly on some systems

    XMLWordPrintableJSON

Details

    Description

      On Google's colab, the following fails:

      !wget https://dlcdn.apache.org/solr/solr/9.4.0/solr-9.4.0.tgz && tar -xf solr-9.4.0.tgz && cd solr-9.4.0 && echo `pwd`
      
      !apt update && apt install bc -y && cd solr-9.4.0 && bin/solr stop -p 8983; bin/solr -c -force -Denable.packages=true
      
      !cd solr-9.4.0 && bin/solr package add-repo data-import-handler "https://raw.githubusercontent.com/searchscale/dataimporthandler/master/repo/"
      

      If I add the following before the last line, it works:

      !cat solr-9.4.0/bin/solr|sed -e 's:ps -f -p:ps -fww -p:g' > tmp; cp tmp solr-9.4.0/bin/solr; chmod +x solr-9.4.0/bin/solr
      

      I think that extra "ww" is needed to make sure Solr works fine on all systems. FYI dep4b.

      Attachments

        Issue Links

          Activity

            People

              epugh Eric Pugh
              ichattopadhyaya Ishan Chattopadhyaya
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h