mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
rm start.sh stop.sh
This commit is contained in:
parent
7dfb38f599
commit
751da14611
@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
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,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cjserver -c /etc/CppJieba/server.conf -k stop
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "stop failed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "stop ok."
|
|
@ -50,7 +50,6 @@ bool run(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
unsigned int port = 0;
|
unsigned int port = 0;
|
||||||
unsigned int threadNum = 0;
|
unsigned int threadNum = 0;
|
||||||
string pidFile;
|
|
||||||
string dictPath;
|
string dictPath;
|
||||||
string modelPath;
|
string modelPath;
|
||||||
string val;
|
string val;
|
||||||
@ -66,11 +65,6 @@ bool run(int argc, char** argv)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
threadNum = atoi(val.c_str());
|
threadNum = atoi(val.c_str());
|
||||||
if(!conf.get("pid_file", pidFile))
|
|
||||||
{
|
|
||||||
LogFatal("conf get pid_file failed.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!conf.get("dict_path", dictPath))
|
if(!conf.get("dict_path", dictPath))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user