File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ENDIF()
1313ADD_SUBDIRECTORY (src)
1414ADD_SUBDIRECTORY (dict)
1515
16- if (! ${APPLE} )
16+ IF ( " ${CMAKE_SYSTEM} " MATCHES "Linux" )
1717ADD_SUBDIRECTORY (script)
1818ADD_SUBDIRECTORY (conf)
1919endif ()
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ make test
4141
4242### 启动服务
4343
44+ 因为服务的后台运行需要` start-stop-daemon ` ,在ubuntu下是自带的。但是在CentOS下就需要自己安装了。
45+
4446```
4547#Usage: /etc/init.d/cjserver {start|stop|restart|force-reload}
4648#启动
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ case "$1" in
2020 mkdir -p $RUNDIR
2121 touch $PIDFILE
2222 chmod 755 $RUNDIR
23- if start-stop-daemon --start --quiet --umask 007 -- pidfile $PIDFILE --exec /bin/bash -- -c " $DAEMON $DAEMON_ARGS >> $LOGFILE 2>&1"
23+ if start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /bin/bash -- -c " $DAEMON $DAEMON_ARGS >> $LOGFILE 2>&1"
2424 then
2525 echo " $NAME ."
2626 else
You can’t perform that action at this time.
0 commit comments