jyyw il y a 1 an
Parent
commit
79cf8647da
2 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. 7 7
      syjy/ipfcstV3/bin/start-upload.sh
  2. 4 4
      syjy/ipfcstV3/bin/status-upload.sh

+ 7 - 7
syjy/ipfcstV3/bin/start-upload.sh

@@ -3,11 +3,11 @@
 export basedir=/home/syjy/ipfcstV3
 export producedir=$basedir/produce
 
-export start_app_log=$basedir/logs/ipfcst_spare2.log
+export start_app_log=$basedir/logs/ipfcst_upload.log
 
 export version="0.0.1.m"
 
-export app_path=$producedir/spare2/$version
+export app_path=$producedir/upload/$version
 
 export JAVA_HOME=/home/syjy/ipfcstV3/jdk/jdk1.8.0_261
 export JRE_HOME=$JAVA_HOME/jre
@@ -18,13 +18,13 @@ export LANG="zh_CN.UTF-8"
 export LC_ALL="zh_CN.UTF-8"
 
 cd $app_path
-echo "Starting spare2"
+echo "Starting upload"
 ulimit -n 65535
-if test -x $app_path/ipfcst-spare2.jar; then
-	java -jar $app_path/ipfcst-spare2.jar >$start_app_log &
-	echo "spare2 started, PID is $!" | sed -e "s/\b\(.\)/\u\1/g"
+if test -x $app_path/ipfcst-upload.jar; then
+	java -jar $app_path/ipfcst-upload.jar >$start_app_log &
+	echo "upload started, PID is $!" | sed -e "s/\b\(.\)/\u\1/g"
 else
-	echo "Couldn't find spare2 server($app_path/ipfcst-spare2.jar)"
+	echo "Couldn't find upload server($app_path/ipfcst-upload.jar)"
 fi
 
 exit 0

+ 4 - 4
syjy/ipfcstV3/bin/status-upload.sh

@@ -1,15 +1,15 @@
 #!/bin/sh
 
-pid_list="$(ps aux | grep ipfcst-spare2 | grep -v grep | awk '{print $2}')"
+pid_list="$(ps aux | grep ipfcst-upload | grep -v grep | awk '{print $2}')"
 pid_count=$(echo $pid_list | wc -w)
 if test $pid_count -eq 1; then
-	echo "spare2 running, pid is $pid_list"
+	echo "upload running, pid is $pid_list"
 	exit 0
 elif test $pid_count -gt 1; then
-	echo "Multiple spare2 running $pid_list"
+	echo "Multiple upload running $pid_list"
 	exit 1
 elif test -z $pid_list; then
-	echo "spare2 is not running"
+	echo "upload is not running"
 	exit 1
 fi