eZ Community » Forums » Install & configuration » Solr startup script on MacOs X Snow...
expandshrink

Solr startup script on MacOs X Snow Leopard server

Solr startup script on MacOs X Snow Leopard server

Thursday 23 September 2010 12:44:25 pm - 6 replies

Hello everyone,

My production server is MacOs X Snow Leopard Server and i try to make ezfind work on it.

I installed the script : ./extension/ezfind/bin/scripts/rhel/solr

into this created folder : /Library/StartupItems/eZFind_init/

With those files inside :

  • StartupParameters.plist
  • eZFind_init
  • solr

Then i try as root :

SystemStarter -v start eZFind_init

And it fails as if the 'solr' script wasn't made for this distribution. Here is the output :

/Library/StartupItems/eZFind_init/solr: line 46: pidof: command not foundtouch: /var/lock/subsys/solr: No such file or directory   ...done.

Does anybody know where to find the real script ? Any idea of how to handle this install correctly ?

Thanx in advance for any help ++

Modified on Thursday 23 September 2010 12:47:10 pm by H-Works Agency

Thursday 23 September 2010 1:46:49 pm

Hi Martin

I'm pretty sure that the provided init.d scripts won't work on OSX Server, as you'll need to use launchd. You will need to write yours (maybe it would be interesting to have it packaged in eZ Find though).

There is a soft to control launchd scripts : Lingon.

Thursday 23 September 2010 2:17:09 pm

I'm pretty sure that the provided init.d scripts won't work on OSX Server, as you'll need to use launchd. You will need to write yours (maybe it would be interesting to have it packaged in eZ Find though).

This should be reported in eZ Find's issue tracker, that would be a great addition.
Cheers !

Thursday 23 September 2010 8:21:48 pm

Disclaimer, have not read the script or tested, just going off the cuff

There is no pidof in OS X.

The workaround http://www.afp548.com/article.php?story=20061106094324710 be sure to read to the bottom.  The script may have to forgo pidof and use the lower level commands to be universal. 

Also no /var/lock directory by default in OS X although it can be created.

Not much help, but hopefully get steered in right direction. 

 

Thursday 23 September 2010 10:27:16 pm

Hi Doug

IMHO, a launchd script would be ideal as this is the most native blunk.gif Emoticon. I'm reporting this to the eZFind issue tracker

Thursday 23 September 2010 10:44:40 pm

Reported !

http://issues.ez.no/IssueView.php?Id=17328

I'll try to provide a LaunchD script ASAP happy.gif Emoticon

Tuesday 04 January 2011 6:20:16 pm

Jérôme, I need such a script for the asynchronous publishing daemon, you're gonna have to help me happy.gif Emoticon

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from