瀏覽代碼

opt: 脚本优化

sensordb2 1 月之前
父節點
當前提交
dfb517e652
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      minio-into-stck/run.sh
  2. 1 1
      minio-into-stck/status.sh

+ 0 - 1
minio-into-stck/run.sh

@@ -72,5 +72,4 @@ else
     fi
     log_file="minio-into-stck_$(date "+%Y-%m-%d-%H:%M:%S").log"
     ./minio-into-stck server --config-file=$base_dir/config/config.xml &> "${log_path}${log_file}" &
-    ./status.sh
 fi

+ 1 - 1
minio-into-stck/status.sh

@@ -8,7 +8,7 @@ base_dir=$(
     pwd
 )
 cd $base_dir
-server_pid=$(ps -auxc | grep minio-into-stck | grep -vE "grep|-Xmx700m" | awk '{print $2}')
+server_pid=$(pgrep -x minio-into-stck)
 if [[ $server_pid == "" ]]; then
     echo "minio-into-stck 未在运行"
 else