新增说明和启动文件

This commit is contained in:
郝大全
2018-07-21 22:39:43 +08:00
parent c920a44a83
commit bf99833b7e
2 changed files with 159 additions and 0 deletions

30
run.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# @Author: haodaquan
# @Date: 2017-06-29 17:44:45
# @Last Modified by: haodaquan
# @Last Modified time: 2017-06-29 17:44:45
case $1 in
start)
nohup ./PPGo_Job 2>&1 >> info.log 2>&1 /dev/null &
echo "服务已启动..."
sleep 1
;;
stop)
killall PPGo_Job
echo "服务已停止..."
sleep 1
;;
restart)
killall PPGo_Job
sleep 1
nohup ./PPGo_Job 2>&1 >> info.log 2>&1 /dev/null &
echo "服务已重启..."
sleep 1
;;
*)
echo "$0 {start|stop|restart}"
exit 4
;;
esac