1
This commit is contained in:
parent
a567ec9fae
commit
a039fe2925
10
restart.sh
Normal file → Executable file
10
restart.sh
Normal file → Executable 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 &
|
||||
|
Loading…
x
Reference in New Issue
Block a user