Forums / Install & configuration / Solr startup script on MacOs X Snow Leopard server

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

eZ debug

Timing: Jan 17 2025 21:15:39
Script start
Timing: Jan 17 2025 21:15:39
Module start 'content'
Timing: Jan 17 2025 21:15:39
Module end 'content'
Timing: Jan 17 2025 21:15:39
Script end

Main resources:

Total runtime0.7574 sec
Peak memory usage4,096.0000 KB
Database Queries214

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 597.4297180.8047
Module start 'content' 0.00640.6496 778.2344782.5469
Module end 'content' 0.65600.1014 1,560.7813340.6406
Script end 0.7574  1,901.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4829210.0002
Check MTime0.00140.1790210.0001
Mysql Total
Database connection0.00110.143110.0011
Mysqli_queries0.675689.19552140.0032
Looping result0.00180.23932120.0000
Template Total0.732996.820.3665
Template load0.00180.235420.0009
Template processing0.731196.524520.3656
Template load and register function0.00010.014010.0001
states
state_id_array0.00060.083610.0006
state_identifier_array0.00050.065620.0002
Override
Cache load0.00160.2091540.0000
Sytem overhead
Fetch class attribute can translate value0.00110.143660.0002
Fetch class attribute name0.00080.0996120.0001
XML
Image XML parsing0.00250.333760.0004
class_abstraction
Instantiating content class attribute0.00000.0020140.0000
General
dbfile0.00350.4667540.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs