mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
use trap
This commit is contained in:
parent
608ef35af7
commit
f2e0ed9398
1 changed files with 13 additions and 2 deletions
|
|
@ -2,10 +2,21 @@
|
|||
# if any of the commands fail, the script will exit
|
||||
set -e
|
||||
|
||||
pwd
|
||||
|
||||
. ./common_scripts.sh
|
||||
|
||||
print_debug() {
|
||||
log "Received signal to stop"
|
||||
log "Printing debug logs for model_server"
|
||||
log "===================================="
|
||||
tail -n 500 ~/archgw_modelserver.log
|
||||
log "Printing debug logs for docker"
|
||||
log "===================================="
|
||||
tail -n 500 ../build.log
|
||||
}
|
||||
|
||||
trap 'print_debug' INT TERM
|
||||
|
||||
|
||||
log starting > ../build.log
|
||||
|
||||
log building function_callling demo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue