kolla/docker/kolla-toolbox/kolla_toolbox.sh
Michal Nasiadka 8c5b6dc5bd toolbox: Add sleep script handling signals
Closes-Bug: #2031692

Change-Id: I8b69869cca98d83d3b1be3f4add88ff83b22b4a1
2023-08-23 08:55:34 +00:00

17 lines
157 B
Bash

#!/usr/bin/env bash
catch_term() {
exit 0
}
catch_quit() {
exit 0
}
trap catch_term SIGTERM
trap catch_quit SIGQUIT
while :; do
sleep 1
done