当前位置首页 > Nginx知识

nginx开启关闭shell

阅读次数:257 次  来源:admin  发布时间:

#!/bin/sh

#file: /usr/local/bin/sphinx

. /etc/rc.d/init.d/functio

appName="Sphinx"

top(){

/usr/local/bin/searchd -c /usr/local/coreseek/etc/sphinx.conf --stop > /dev/null 2>&1

ret=$?

if [ $ret -eq 0 ]; the

action $"Stoping $appName: " /bin/true

else

action $"Stoping $appName: " /bin/false

fi

return $ret

}

tart(){

/usr/local/bin/searchd -c /usr/local/coreseek/etc/sphinx.conf > /dev/null 2>&1

ret=$?

if [ $ret -eq 0 ]; the

action $"Starting $appName: " /bin/true

else

action $"Starting $appName: " /bin/false

fi

return $ret

}

indexer(){

/usr/local/bin/indexer -c /usr/local/coreseek/etc/sphinx.conf --all > /dev/null 2>&1

ret=$?

if [ $ret -eq 0 ]; the

action $"$appName making index: " /bin/true

else

action $"$appName making index: " /bin/false

fi

return $ret

}

case $1 i

restart)

to

indexer

tart

top)

to

tart)

tart

esac

exit 0

上一篇:linux网卡的混杂模式的取消
下一篇:linuxkill命令【待完善】【转】