Solr startup script on MacOs X Snow Leopard server

Author Message

H-Works Agency

Thursday 23 September 2010 3:44:25 am

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 ++

EZP is Great

Jérôme Vieilledent

Thursday 23 September 2010 4:46:49 am

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.

Nicolas Pastorino

Thursday 23 September 2010 5:17:09 am

"

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 !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Doug Brethower

Thursday 23 September 2010 11:21:48 am

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. 

 

Doug Brethower
Apple Certified Technical Consultant, Southwest, MO USA
http://share.ez.no/directory/companies/lakedata.net

Jérôme Vieilledent

Thursday 23 September 2010 1:27:16 pm

Hi Doug

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

Jérôme Vieilledent

Thursday 23 September 2010 1:44:40 pm

Reported !

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

I'll try to provide a LaunchD script ASAP :)

Bertrand Dunogier

Tuesday 04 January 2011 9:20:16 am

Jérôme, I need such a script for the asynchronous publishing daemon, you're gonna have to help me :-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

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

eZ debug

Timing: Jan 30 2025 18:30:58
Script start
Timing: Jan 30 2025 18:30:58
Module start 'layout'
Timing: Jan 30 2025 18:30:58
Module start 'content'
Timing: Jan 30 2025 18:30:58
Module end 'content'
Timing: Jan 30 2025 18:30:58
Script end

Main resources:

Total runtime0.0258 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.5156151.2422
Module start 'layout' 0.00500.0034 740.7578220.7500
Module start 'content' 0.00840.0160 961.50781,006.6953
Module end 'content' 0.02450.0013 1,968.203141.9922
Script end 0.0257  2,010.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.6952140.0002
Check MTime0.00103.7883140.0001
Mysql Total
Database connection0.00093.581110.0009
Mysqli_queries0.00238.857930.0008
Looping result0.00000.034210.0000
Template Total0.00093.510.0009
Template load0.00072.634710.0007
Template processing0.00020.818710.0002
Override
Cache load0.00051.866010.0005
General
dbfile0.003915.202480.0005
String conversion0.00000.023140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs