rm start.sh stop.sh

This commit is contained in:
wyy 2013-11-30 05:21:01 -08:00
parent 7dfb38f599
commit 751da14611
3 changed files with 0 additions and 20 deletions

View File

@ -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."

View File

@ -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."

View File

@ -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))
{ {