您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

15 行
252 B

  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "$0" )" && pwd )"
  3. FILES=$(find "$DIR" -name "*.pid" -type f);
  4. for pid_file in $FILES; do
  5. pid=$(cat "$pid_file")
  6. if [[ $pid ]]; then
  7. echo "Killing $pid_file with $pid"
  8. kill $pid
  9. fi
  10. done