1
This commit is contained in:
parent
6d3491a2ec
commit
e2fbb7810d
17
scripts/publish_pm2_cpp_i_n/restart.sh
Executable file
17
scripts/publish_pm2_cpp_i_n/restart.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#source ./common.sh
|
||||||
|
|
||||||
|
#ps -ef|grep ${PROJECT_NAME} > bin/ps.log
|
||||||
|
|
||||||
|
instances=(${1//,/ })
|
||||||
|
n=$2
|
||||||
|
PROJECT_NAME=wsproxy2004
|
||||||
|
|
||||||
|
for i in ${instances[@]}
|
||||||
|
do
|
||||||
|
pm2 delete ecosystem.config.js --only ${PROJECT_NAME}_n${n}_i${i} $n $i ${PROJECT_NAME}
|
||||||
|
pm2 start ecosystem.config.js --only ${PROJECT_NAME}_n${n}_i${i} $n $i ${PROJECT_NAME}
|
||||||
|
done
|
||||||
|
|
||||||
|
echo 'success'
|
Loading…
x
Reference in New Issue
Block a user