pull/109/head
Mr Chen 6 years ago
parent 879c582e13
commit 0803b7c66b
  1. 12
      plugins/sphinx/index.py
  2. 7
      plugins/sphinx/init.d/sphinx.tpl

@ -108,25 +108,25 @@ def initDreplace():
def start():
file = initDreplace()
data = public.execShell(file + ' start')
if data[1] == '':
if data[0] == '':
return 'ok'
return 'fail'
return data[0]
def stop():
file = initDreplace()
data = public.execShell(file + ' stop')
if data[1] == '':
if data[0] == '':
return 'ok'
return 'fail'
return data[0]
def restart():
file = initDreplace()
data = public.execShell(file + ' restart')
if data[1] == '':
if data[0] == '':
return 'ok'
return 'fail'
return data[0]
def reload():

@ -32,6 +32,10 @@ start () {
fi
}
rebuild () {
${APP_PATH}/bin/bin/indexer -c ${APP_CONF} --all --rotate
}
stop () {
echo -n $"Stopping $prog: "
@ -66,6 +70,9 @@ case "$1" in
restart|reload)
restart
;;
rebuild)
rebuild
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload}"
exit 1

Loading…
Cancel
Save