Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently upgrade a VM to Redhat 5 and moved Sphinx Search to that server. For some reason when I try to start Sphinx, the startup script fails to push the searchd process to the background. I created a test script with a minimal version of the startup call, which is as follows:

#!/bin/sh
. /etc/rc.d/init.d/functions
daemon /usr/local/sphinx/bin/searchd --config
/home/app/code/server_config/sphinx_config.php

The searchd process starts and I get output that indicates it is listening on the correct IP:port, but the process never returns.

The process that is hanging is in the daemon call, and ps shows it as:

/bin/bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/local/sphinx/bin/searchd --config
/home/app/code/server_config/sphinx_config.php

Any ideas on what might be causing this or how to troubleshoot? We use the same process on about a dozen other servers running Redhat 4 which work fine (although the process created by daemon uses initlog, so it is different).

share|improve this question

1 Answer 1

Turns out that there was nothing wrong with the init script, but that sphinx searchd was taking a very long time to start. Insufficient memory was allocated on the VM, so it was having problems starting up with the large indexes. Increased the memory allocation and works fine now.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.