G
G
Goodver2012-06-21 02:08:55
linux
Goodver, 2012-06-21 02:08:55

[Solved] Why won't the commands from rc.local run? CentOS 6

CentOS 6, I'm trying to add sphinx startup to autoload

The contents of the rc.local file located at etc/rc.d/rc.local
indexer --config /usr/local/sphinx/etc/sphinx.conf --all
searchd --config /usr/local/sphinx/etc/sphinx.conf

Nothing happens after the reboot, when I write manually everything is ok.

What is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Goodver, 2012-06-21
@Goodver

The problem is that in the commands you need to prescribe the full paths for the binaries, in this case it should look like this.
/usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf --all
/usr/local/sphinx/bin/searchd --config /usr/local/sphinx/etc/ sphinx.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question