eZ Community » Forums » Install & configuration » Ezfind start/stop script for RHEL...
expandshrink

Ezfind start/stop script for RHEL does not work

Ezfind start/stop script for RHEL does not work

Monday 22 October 2012 10:29:14 am - 4 replies

While migrating ezfind from Debian to RHEL 6.3, we realized that the starting script:

https://github.com/ezsystems/ezfind/blob/master/bin/scripts/rhel/solr 

does not work properly:

* it does not remove /var/run/solr.pid on a stop

* the usual RHEL output of a start/stop daemon script ([OK], [FAILED], and so on) ends up in a file named "1"

do any of you have an updated/corrected version of this script, or can suggest corrections?

thanks

Modified on Monday 22 October 2012 10:43:14 am by Francesco Ronzon

Monday 22 October 2012 11:20:59 am

You should probably head on to Jira (ex-Wit) and file a bug there. Maybe you will find the problem is already known (and if you're very lucky there might even be a patch proposed)

Monday 22 October 2012 11:36:07 am

And icing on the cake: if you have a working patch yourself, you can directly push it to the eZ Find code, through a pull request.

Cheers!

Tuesday 30 October 2012 5:33:30 pm

Ok, here's teh cake: https://github.com/gggeek/ezfind/blob/better_initscripts/bin/scripts/rhel/solr

Plz test it as much as you can before I send in the pull request.

So far, I've tested it only on Centos 6.3.

Changes:

- allow usage of /etc/sysconfig/solr for putting configs (avoid editing this file by itself; allows adding parameters for the JVM as well)

- now gives better diagnostic messages when calling stop and solr is not running

- the outputted line when calling reload has slightly changed as well

Monday 05 November 2012 7:43:57 pm

PR done (and 2 jira issues opened as well)

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from