Solr as service - not running

Author Message

Lo' F.

Friday 18 March 2011 11:50:04 am

Hi guys,

I am experiencing problems making solr server run as service...

- Here I set the SOLR_HOME=/var/www/vhosts/xxxxxxxx.net/httpdocs/extension/ezfind/java in /extension/ezfind/bin/scripts/rhel/solr file

- and then copied the red hat solr file in the /etc/init.d directory..

[root@xx ~]# cp /var/www/vhosts/xxxxxx.net/httpdocs/extension/ezfind/bin/scripts/rhel/solr /etc/init.d

- Set the solr file permission to be executable..

[root@xx ~]# chmod +x /etc/init.d/solr

- Manually set the virtual links..

[root@xx ~]# cd /etc/rc3.d
[root@xx rc3.d]# ln -s ../init.d/solr S70solr
[root@xx rc3.d]# ln -s ../init.d/solr K70solr
[root@xx rc3.d]# cd /etc/rc5.d
[root@xx rc5.d]# ln -s ../init.d/solr S70solr
[root@xx rc5.d]# ln -s ../init.d/solr K70solr

When starting solr..

[root@xx ~]# /etc/init.d/solr start

..it seems to go fine as it responds this way..

/etc/init.d/solr: line 24: /var/www/vhosts/xxxx.net/httpdocs/extension/ezfind/java: is a directory
 * Starting Solr indexing server (solr)
   ...done.

..but when checking the status..

[root@xx ~]# /etc/init.d/solr status

.. it echoes solr's not running ...

/etc/init.d/solr: line 24: /var/www/vhosts/xxxxxx.net/httpdocs/extension/ezfind/java: is a directory
 * Solr indexing server (solr) is not running

What can this depend on? Any idea?

I really look forward to your helpful reply. Thanks!

loredanaebook.it

Lo' F.

Friday 18 March 2011 1:24:08 pm

Well.. silly but the 'trouble' came from having just set the JAVA_HOME leaving a space before the java path ;P

JAVA_HOME= /var/www/vhosts/xxxxxxxx.net/httpdocs/extension/ezfind/java

Fixed by simply removing the bloody space!

JAVA_HOME=/var/www/vhosts/xxxxxxx.net/httpdocs/extension/ezfind/java

Never mind ;)

And here it works...

[root@62 ~]# /etc/init.d/solr start
 * Starting Solr indexing server (solr)
   ...done.
[root@62 ~]# /etc/init.d/solr status
 * Solr indexing server (solr) is running

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.