This commit is contained in:
aozhiwei 2019-01-30 10:55:30 +08:00
parent a567ec9fae
commit a039fe2925

10
restart.sh Normal file → Executable file
View File

@ -1 +1,9 @@
nohup python bin/kefu_robot.py >> bin/kefu_robot.out 2>&1 &
#!/bin/bash
ps -ef|grep python|grep kefu_robot|grep -v grep
if [ $? -eq 0 ]; then
ps -ef|grep python|grep kefu_robot|grep -v grep|awk '{print $2}'|xargs kill -9
fi
cd bin
nohup python kefu_robot.py >> kefu_robot.out 2>&1 &