Giter Site home page Giter Site logo

Comments (8)

jbusby avatar jbusby commented on August 28, 2024

Did you have Solr running on these boxes prior to installing this script? It will look for /var/run/solr.pid when you run the start command, if that file already existed you would get this message.

from solr-initd.

brandon-lile avatar brandon-lile commented on August 28, 2024

I'll give it a shot and reply back with my results

from solr-initd.

brandon-lile avatar brandon-lile commented on August 28, 2024

There is not a pid file for solr beforehand

from solr-initd.

brandon-lile avatar brandon-lile commented on August 28, 2024

This is very strange. It seems as if I have to wait a certain amount of time after running chkconfig. I ran chkconfig through fabric, then ssh'd into the box and manually started it and it worked.

from solr-initd.

jbusby avatar jbusby commented on August 28, 2024

Can you post the fabric script?

from solr-initd.

brandon-lile avatar brandon-lile commented on August 28, 2024

The whole thing is huge. I'll just post the necessary area

# place init script for solr
put('install/solr.initd', '/etc/init.d/solr', use_sudo=True)
put('install/solr.start', '/opt/solr/example/solr.start')
put('install/solr.conf', '/etc/solr.conf', use_sudo=True)
sudo('chmod +x /etc/init.d/solr')
sudo('chmod +x /opt/solr/example/solr.start')
append('/etc/profile', 'export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre', use_sudo=True)
sudo('sudo chkconfig --add solr')
sudo('service solr start')

The file has already been configured

EDIT*
It's not a matter of time. If I'm ssh'd into the box and run service solr start directly after the fabfile finishes, it works correctly.

from solr-initd.

jbusby avatar jbusby commented on August 28, 2024

I'm assuming the problem occurs on the last line? I only have a centos 5 VM to test on right now and I can't recreate issue. I have a centos 6 VM at home, I'll have a look tonight. In the mean time if you find the solution please let me know.

from solr-initd.

jbusby avatar jbusby commented on August 28, 2024

I'm closing this, as I'm unable to recreate it.

from solr-initd.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.