Browse Source

更新启动脚本

dongzhaorui 2 years ago
parent
commit
70615bd22f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      zgztb_cookie/start.sh

+ 2 - 1
zgztb_cookie/start.sh

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