Kaynağa Gözat

opt:删除license判断等

sensordb2 2 ay önce
ebeveyn
işleme
ca58fed347
3 değiştirilmiş dosya ile 1 ekleme ve 12 silme
  1. 0 6
      watch-daemon/restart.sh
  2. 0 6
      watch-daemon/run.sh
  3. 1 0
      watch-daemon/stop.sh

+ 0 - 6
watch-daemon/restart.sh

@@ -4,12 +4,6 @@ cat << 'LOGO'
 ###############################################################
    
                            重启脚本
-
-                运行此脚本时可附加参数(不加参数则视为全部重启)
-                        -1 storage
-                        -2 insert
-                        -3 query
-
 ###############################################################                                             
 LOGO
 base_dir=$(

+ 0 - 6
watch-daemon/run.sh

@@ -63,12 +63,6 @@ if [[ ! -x "$base_dir/watch-daemon" ]]; then
     log_err "watch-daemon无可执行权限,无法运行。请使用chmod" && exit 1
 fi
 
-if [[ ! -f "$base_dir/license/license_key.json" ]]; then
-    log_warn "您可能未开始、或未完成授权过程.现在生成key,请之后完成授权过程再启动此脚本"
-    # exit 1
-fi
-
-
 ###################################################################################################
 if ps -auxc | grep "watch-daemon" | grep -v grep > /dev/null; then
     log_info "watch-daemon已在运行"

+ 1 - 0
watch-daemon/stop.sh

@@ -35,6 +35,7 @@ function log_err() {
     local para=$1
     echo "[ERROR] $date $1" | tee -a "./log/stop_log"
 }
+
 function stop_process() {
     ID=$(ps -auxc | grep "$1" | grep -v "$0" | grep -v "grep" | awk '{print $2}')
     if [[ "$ID" ]]; then