script update

This commit is contained in:
away
2021-07-15 10:57:47 +08:00
parent 7772b9ff88
commit 8b04929f3d
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
echo -e "${SKY_BLUE_PREFIX}${service_filename[$i]} Service is starting,port number:$j $COLOR_SUFFIX"
#Start the service in the background
# ./${service_filename[$i]} -port $j &
nohup ./${service_filename[$i]} -port $j >../logs/openIM.log 2>&1 &
nohup ./${service_filename[$i]} -port $j >>../logs/openIM.log 2>&1 &
sleep 1
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"
echo -e "${RED_PREFIX}${service_filename[$i]} Service is started,port number:$j pid:$(eval $pid)$COLOR_SUFFIX"