This commit is contained in:
aozhiwei 2020-06-10 09:59:34 +08:00
parent 4f1aff87e4
commit 8dbd9659f5
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash
sh real_start_instance.sh $1 $2
source ./common.sh
ps -ef|grep ${PROJECT_NAME} > bin/ps.log
python manage.py restart $1 $2 ${PROJECT_NAME}
echo 'success'

View File

@ -2,5 +2,5 @@
source ./common.sh
cd bin
nohup ./${PROJECT_NAME} -i $1 -n $2 >> ${PROJECT_NAME}$2_$1.out 2>&1 &
nohup sh real_start_instance.sh $1 $2 >> ${PROJECT_NAME}$2_$1.out 2>&1 &