7 PID
=$
(pidof
-o %PPID
/usr
/bin
/sphinx-searchd
)
10 stat_busy
"Starting Sphinx Daemon"
12 if [[ -z $PID ]] && /usr
/bin
/sphinx-searchd
$SPHINX_ARGS; then
14 PID
=$
(pidof
-o %PPID
/usr
/bin
/sphinx-searchd
)
15 echo "$PID" > /var
/run
/sphinx-searchd.pid
25 stat_busy
"Stopping Sphinx Daemon"
26 if [[ ! -z $PID ]] && kill "$PID" &>/dev
/null
; then
41 echo "Usage: $0 {start|stop|restart}" >&2