urgent bug fixes for danube (1)
[doctor.git] / tests / lib / inspectors / sample
1 #!/bin/bash
2
3 INSPECTOR_PORT=${INSPECTOR_PORT:-12345}
4
5 function start_inspector_sample {
6     pgrep -f "python inspector.py" && return 0
7     python inspector.py "$INSPECTOR_PORT" > inspector.log 2>&1 &
8 }
9
10 function stop_inspector_sample {
11     pgrep -f "python inspector.py" || return 0
12     kill $(pgrep -f "python inspector.py")
13 }
14
15 function cleanup_inspector_sample {
16     # Noop
17     return
18 }