浏览代码

更新启动脚本

dongzhaorui 2 年之前
父节点
当前提交
70615bd22f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      zgztb_cookie/start.sh

+ 2 - 1
zgztb_cookie/start.sh

@@ -1,6 +1,5 @@
 #!/bin/bash
 
-#进入rest所有目录,后续在此目录执行动作
 function check_time() {
     time_subroutine=$(getconf CLK_TCK)
     start_time=$(awk '{print $22}' /proc/$1/stat)
@@ -12,8 +11,10 @@ function check_time() {
     fi
 }
 
+# 切换目录,在此目录下执行
 cd /mnt
 
+
 for pid in $(ps -ef | grep -v grep | grep detail | awk '{print $2}'); do
     echo $pid
     check_time $pid