File: shutdown_workloads.sh

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (28 lines) | stat: -rwxr-xr-x 515 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# cspell:disable

NO_REMOVE_LOGS=false

while [[ "$#" -gt 0 ]]; do
    case $1 in
        --no-remove-logs)
            NO_REMOVE_LOGS=true
            ;;
        *)
            echo "Unknown parameter: $1"
            exit 1
            ;;
    esac
    shift
done

# Kill all python3 processes
pkill -f "python3 ./r_"
pkill -f "python3 ./w_"

if [ "$NO_REMOVE_LOGS" = false ]; then
    # Remove all files with .log in their filename
    rm -f *.log*
    # Remove envoy log files
    rm envoy/logs/*
fi