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).
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.