diff --git a/scripts/start.sh b/scripts/start.sh deleted file mode 100755 index a5f33b7..0000000 --- a/scripts/start.sh +++ /dev/null @@ -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." diff --git a/scripts/stop.sh b/scripts/stop.sh deleted file mode 100755 index 0a90260..0000000 --- a/scripts/stop.sh +++ /dev/null @@ -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." diff --git a/src/server.cpp b/src/server.cpp index 275f5bd..d9b0b25 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -50,7 +50,6 @@ bool run(int argc, char** argv) } unsigned int port = 0; unsigned int threadNum = 0; - string pidFile; string dictPath; string modelPath; string val; @@ -66,11 +65,6 @@ bool run(int argc, char** argv) return false; } 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)) {