mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
modify start.sh stop.sh
This commit is contained in:
parent
08ff82f91f
commit
7e4f14ec88
@ -1,2 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cjserver -c /etc/CppJieba/server.conf -k start >> /dev/null 2>&1
|
cjserver -c /etc/CppJieba/server.conf -k start >> /dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "start failed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "start ok."
|
||||||
|
@ -1,2 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cjserver -c /etc/CppJieba/server.conf -k stop
|
cjserver -c /etc/CppJieba/server.conf -k stop
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "stop failed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "stop ok."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user