Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to Start on FreeBSD #30

Open
maxjust opened this issue Aug 12, 2013 · 2 comments
Open

Failed to Start on FreeBSD #30

maxjust opened this issue Aug 12, 2013 · 2 comments

Comments

@maxjust
Copy link

maxjust commented Aug 12, 2013

Hello everybody, I have an error then I try to start wrapper via service utility under freeBSD 9.0 x64

My steps are:

  1. clone service directory to /opt/elasticsearch/bin/
  2. cd /opt/elasticsearch/bin/service
  3. ee ./elasticsearch.conf
  4. set.default.ES_HOME=/opt/elasticsearch
  5. ./elasticsearch install
  6. cd / (for clean experiment)
  7. service elasticsearch start
    and I have this:
    Starting ElasticSearch...
    Waiting for ElasticSearch........................
    WARNING: ElasticSearch may have failed to start.

but if I make this:
/opt/elasticsearch/bin/service/elasticsearch start
Starting ElasticSearch...
Waiting for ElasticSearch.......
running: PID:1838

everything is fine. But I need working service way, for autostarting in boot time

PS: Sorry for me English...

@yakhyan
Copy link

yakhyan commented Jan 31, 2018

hi
elasticsearch use bash in start script, and in freeBSD bash path different with Debian distribution.
To solve this problem make a link to correct path of bash in FreeBSD. To this purpose run this command in termianl:
root@bsd:~# ln -sf /usr/local/bin/bash /bin/bash

@yakhyan
Copy link

yakhyan commented Jan 31, 2018

other solution i guess for your problem Elasticsearch will not start if ${prompt.text} or ${prompt.secret} is used in the settings and the process is run as a service or in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants